[Issue 9808] New: with statement does not work with opDispatch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 24 06:33:13 PDT 2013


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 at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2013-03-24 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: -------


More information about the Digitalmars-d-bugs mailing list