Can't seem to call super constructor if it's a template
Steven Schveighoffer
schveiguy at gmail.com
Mon Aug 10 19:43:04 UTC 2020
On 8/10/20 2:37 PM, 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?
https://issues.dlang.org/show_bug.cgi?id=18886
Though technically it's asking for a different solution.
Possibly related:
https://issues.dlang.org/show_bug.cgi?id=13635
-Steve
More information about the Digitalmars-d
mailing list