[Issue 11855] New: Explicit template instantiation with opDispatch fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 1 04:01:56 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11855

           Summary: Explicit template instantiation with opDispatch fails
                    to compile
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: doob at me.com


--- Comment #0 from Jacob Carlborg <doob at me.com> 2014-01-01 04:01:53 PST ---
The following code fails to compile:

struct Foo
{
    void opDispatch (string name, T) () { }
}

void main ()
{
    Foo foo;
    foo.bar!(int);
}

The error message is:

Error: no property 'bar' for type 'Foo'

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


More information about the Digitalmars-d-bugs mailing list