http://d.puremagic.com/issues/show_bug.cgi?id=6711
Summary: "with" doesn't work with "alias this"
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2011-09-22
00:31:00 PDT ---
struct A { int i; }
struct B { A a; alias a this; }
B b;
static assert(is(typeof({
with (b)
i=0;
})));
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------