http://d.puremagic.com/issues/show_bug.cgi?id=9272

           Summary: opDispatch conflicts with UFCS on template functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Nicolas Sicard <[email protected]> 2013-01-05 04:57:36 PST 
---
struct Foo {
    void opDispatch(string s)() {}
}

void bar(T)(Foo f) {}

unittest {
    Foo foo;
    bar!int(foo);  // OK
    foo.bar!int(); // Error: foo.opDispatch isn't a template
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to