opDispatch + Template this parameter ?
Simen kjaeraas
simen.kjaras at gmail.com
Thu Dec 30 15:39:57 PST 2010
Jacob Carlborg <doob at me.com> wrote:
> When I try to compile the following code:
>
> class A
> {
> void opDispatch (string name, this T) () { }
> }
>
> class B : A {}
>
> void main ()
> {
> auto b = new B;
> b.foobar();
> }
>
> I get this error:
>
> Error: template instance opDispatch!("foobar") does not match template
> declaration opDispatch(string name,this T)
>
> Is this a bug or expected behavior ?
Bug. Stuff it in BugZilla.
--
Simen
More information about the Digitalmars-d-learn
mailing list