Bug 5948 – Different error messages for int array

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-05-07T16:07:43Z
Last change time
2024-12-13T17:55:09Z
Keywords
bootcamp, diagnostic
Assigned to
No Owner
Creator
bearophile_hugs
Moved to GitHub: dmd#18338 →

Comments

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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18338 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB