digitalmars.D.bugs - [Issue 9807] New: with statement does not work with alias this
- d-bugmail puremagic.com (36/36) Mar 24 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9807
- d-bugmail puremagic.com (12/12) Jun 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9807
http://d.puremagic.com/issues/show_bug.cgi?id=9807 Summary: with statement does not work with alias this Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: robert octarineparrot.com 13:26:27 GMT --- The with statement does not appear to take alias this into account: ---- void test(T)(T t) { } struct Foo { string[string] strs; alias strs this; } void main() { Foo f; test(f.keys[0]); // Fine with(f) { test(keys[0]); // Not fine } } ---- test.d(15): Error: undefined identifier keys Using dmd 2.062. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 24 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9807 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich gmail.com Resolution| |DUPLICATE 12:01:53 PDT --- *** 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: -------
Jun 09 2013