On Monday, 8 April 2019 at 19:56:50 UTC, Yuxuan Shui wrote:

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?

It works if you use the "storage class" syntax for const:

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

Reply via email to