invariant char[][] a = ["a", "b", "c"]; void main() { auto s = typeid(typeof(a)).toString; } Error: Stack Overflow
Seems to work DMD 2.006. But the result doesn't seem right. Adding a write statement gives: invariant invariant char[][]
dmd 2.035 outputs immutable(immutable(immutable(char)[])[]) which seems to be correct
(In reply to comment #2) > dmd 2.035 outputs immutable(immutable(immutable(char)[])[]) which seems to be > correct Technically yes, though it ought to collapse the redundant immutables. immutable(char[][])
Probably, yes. On the other hand, the non-normalized string can be easily parsed as immutable reference to immutable array of immutable strings. Anyway, it is not a bug.