Explicit template instantiation in super call doesn't compile

Jacob Carlborg doob at me.com
Thu Jan 25 13:32:29 UTC 2018


The following example will not compile:

class Foo
{
     this(T)(T a) {}
}

class C : Foo
{
     this()
     {
         super!(int)(3);
     }
}

The error is on the line of the super call:

"Error: found `!` when expecting `;` following statement"

Is this intentional or just an limitation in the grammar?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list