[Issue 12211] New: Assignment expression is not an lvalue
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 19 23:08:00 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12211
Summary: Assignment expression is not an lvalue
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2014-02-19 23:07:58 PST ---
Test case:
void main()
{
int a;
void foo(ref int x) { assert(&x == &a); }
foo(a += 1); // OK
//foo(a = 1); // doesn't compile
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list