Bug 9703 – Failed matrix literal assignment error message

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-12T10:54:33Z
Last change time
2024-12-13T18:04:50Z
Assigned to
No Owner
Creator
bearophile_hugs
Moved to GitHub: dmd#17577 →

Comments

Comment #0 by bearophile_hugs — 2013-03-12T10:54:33Z
void main() { int[2][3] a1 = [[1], [2], [3]]; } DMD 2.063alpha gives: temp.d(2): Error: cannot implicitly convert expression ([[1], [2], [3]]) of type int[][] to int[] I think that error message should be improved, because I am not asking it to be converted to a 1D array.
Comment #1 by robert.schadek — 2024-12-13T18:04:50Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17577 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB