[Issue 9272] New: opDispatch conflicts with UFCS on template functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 5 04:57:37 PST 2013


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: nobody at puremagic.com
        ReportedBy: dransic at gmail.com


--- Comment #0 from Nicolas Sicard <dransic at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list