Comment #0 by bearophile_hugs — 2011-05-07T16:07:43Z
A wrong D2 program:
void main() {
int[] arr1 = [[1]];
enum int[] arr2 = [[1]];
}
DMD 2.053beta gives:
test.d(2): Error: cannot implicitly convert expression ([[1]]) of type int[][] to int[]
test.d(3): Error: cannot use array to initialize int
In this case I expect to receive two times the first error message.
Comment #1 by robert.schadek — 2024-12-13T17:55:09Z