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?
On 04/08/2019 12:56 PM, Yuxuan Shui wrote:
In this example:
const(AliasSeq!(int, int)) a;
I would expect that to mean a type list (int, int) that cannot be
modified, meaning that it is not allowed to change it from (int, int).
pragma(msg, typeof(a)); // (int, int)
Makes sense
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
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
On 4/8/19 3:56 PM, 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