Wrong code: void main() { enum int[][] array = [0, 1]; array[0] *= 10; } DMD 2.056head shows several "__error": test.d(2): Error: cannot implicitly convert expression (0) of type int to int[] test.d(2): Error: cannot implicitly convert expression (1) of type int to int[] test.d(3): Error: '[(__error),(__error)][cast(uint)0]' is not a scalar, it is a int[] test.d(3): Error: incompatible types for (([(__error),(__error)][cast(uint)0]) *= (10)): 'int[]' and 'int'
What is the problem ?
(In reply to comment #1) > What is the problem ? I think the compiler should not show "__error".
Ah, ok. BTW, check your mail, I believe there is a few reports that I checked and can be closed.
With 2.064: test.d(2): Error: cannot implicitly convert expression (0) of type int to int[] test.d(2): Error: cannot implicitly convert expression (1) of type int to int[]
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d8d124f38e533c3e1415e1cdf147cc64dda8b305 fix Issue 6796 - Several __error with wrong enum definition