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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Nils <[email protected]> 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: -------