[Issue 6711] New: "with" doesn't work with "alias this"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 22 00:31:29 PDT 2011
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: nobody at puremagic.com
ReportedBy: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list