Can't seem to call super constructor if it's a template
Nils Lankila
NilsLankila at gmx.us
Tue Aug 11 08:42:28 UTC 2020
On Monday, 10 August 2020 at 18:37:06 UTC, Andrei Alexandrescu
wrote:
> class A {
> this(T)() {}
> }
>
> class B : A {
> this() { super!int(); }
> }
>
> Error: found ! when expecting ; following statement
>
> That should work, shouldn't it?
I'm not sure. A problem for example is that the class
constructors must have a physical address for TypeInfoClass and
_d_new_class
More information about the Digitalmars-d
mailing list