const of AliasSeq is silently ignored

Yuxuan Shui yshuiv7 at gmail.com
Mon Apr 8 19:56:50 UTC 2019


In this example:

     const(AliasSeq!(int, int)) a;
     pragma(msg, typeof(a)); // (int, int)

This kind of make sense, since AliasSeq is not a "single" type. 
But silently dropping const seems bad, the compiler should 
probably report an error/warning in this case?


More information about the Digitalmars-d-learn mailing list