digitalmars.D.bugs - [Issue 7609] New: Can't access field of aliased type via 'with' statement
- d-bugmail puremagic.com (36/36) Feb 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7609
- d-bugmail puremagic.com (11/11) Feb 08 2013 http://d.puremagic.com/issues/show_bug.cgi?id=7609
http://d.puremagic.com/issues/show_bug.cgi?id=7609 Summary: Can't access field of aliased type via 'with' statement Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com 05:52:37 PST --- import std.stdio; struct Foo { int x; } struct Bar { Foo foo; alias foo this; } void main() { Bar bar; writeln(bar.x); // ok with (bar) { writeln(x); // fail } } test2.d(23): Error: undefined identifier x -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 29 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7609 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE 15:35:49 PST --- *** This issue has been marked as a duplicate of issue 6711 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 08 2013