Summary: opDispatch with template this parameter fails to
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Jacob Carlborg <> 2010-12-31 05:51:59 PST ---
When compiling the following code:

class A
    void opDispatch (string name, this T) () { }

class B : A {}

void main ()
    auto b = new B;

I get this error:

Error: template instance opDispatch!("foobar") does not match template
declaration opDispatch(string name,this T)

DMD v2.051

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to