Can't seem to call super constructor if it's a template

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Aug 10 18:49:10 UTC 2020


On Mon, Aug 10, 2020 at 02:37:06PM -0400, Andrei Alexandrescu via Digitalmars-d wrote:
> class A {
>     this(T)() {}
> }
> 
> class B : A {
>     this() { super!int(); }
> }
> 
> Error: found ! when expecting ; following statement
> 
> That should work, shouldn't it?

Looks like a bug. :-)


T

-- 
Caffeine underflow. Brain dumped.


More information about the Digitalmars-d mailing list