Summary: Different error messages for int array
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-05-07 16:07:43 PDT ---
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.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to