DIP 1004 Preliminary Review Round 1

Andrej Mitrovic via Digitalmars-d digitalmars-d at puremagic.com
Wed May 3 08:09:03 PDT 2017


On Wednesday, 3 May 2017 at 12:58:17 UTC, Daniel N wrote:
> The trick is that your child class need to have defined at 
> least 1 constructor before the alias.
>
> This should work:
> this() {}
> alias __ctor = super.__ctor;
>
> This will give the error message you saw:
> alias __ctor = super.__ctor;
> this() {}

I see. It does look like an accidental feature (as in, that it 
could break in the future).


More information about the Digitalmars-d mailing list