*** Issue 19845 has been marked as a duplicate of this issue. ***
Comment #3 by b2.temp — 2023-12-16T21:06:20Z
Not and ER, that is well a bug, according to https://dlang.org/spec/const3.html#const_type
> [...]. Each applies transitively to all subtypes.
The problem is that the DMD class `TypeTuple` (in mtype.d) does not override `.constOf`, `immutableOf()`, etc.
Tagging as accept-invalid given that
```d
alias AliasSeq(T...) = T;
const(AliasSeq!(int, int)) a;
void main()
{
a[0] = 1;
}
```
should be reject just like when `const` is variable storage class.
Comment #4 by robert.schadek — 2024-12-13T19:02:55Z