how to have alias this with an unaccessible member?

Dicebot m.strashun at gmail.com
Sat May 18 02:04:25 PDT 2013


Btw, fun fact. This code crashes 2.063 beta:

------------------------

struct A(T)
{
     private T x;
     alias y = x;
     alias y this;
}

------------------------

dmd: aliasthis.c:114: virtual void AliasThis::semantic(Scope*): 
Assertion `t' failed.


More information about the Digitalmars-d-learn mailing list