[Issue 10424] New: array operations accept rvalues on the lhs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 20 08:16:50 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10424
Summary: array operations accept rvalues on the lhs
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: nilsbossung at googlemail.com
--- Comment #0 from Nils <nilsbossung at googlemail.com> 2013-06-20 08:16:49 PDT ---
int f();
int[] g();
void main()
{
//f() = 42; // as expected: Error: f() is not an lvalue
//g() = [42]; // as expected: Error: g() is not an lvalue
g()[] = [42]; // compiles, but shouldn't
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list