digitalmars.D.bugs - [Issue 9808] New: with statement does not work with opDispatch
- d-bugmail puremagic.com (33/33) Mar 24 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9808
http://d.puremagic.com/issues/show_bug.cgi?id=9808 Summary: with statement does not work with opDispatch 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:33:12 GMT --- The with statement does not appear to take opDispatch into account: ---- struct Foo { string[string] strs; void opDispatch(string s, T)(T t) {} } void main() { Foo f; f.check(1); with(f) { check(2); } } ----- test.d(11): Error: undefined identifier check Using dmd 2.062. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 24 2013