Bug 22371 – wrong type in error on failed implicit conversions to ndims static arrays

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-08T22:22:38Z
Last change time
2024-12-13T19:18:41Z
Keywords
diagnostic
Assigned to
No Owner
Creator
basile-z
Moved to GitHub: dmd#19991 →

Comments

Comment #0 by b2.temp — 2021-10-08T22:22:38Z
for ``` string[2][2] s = [["wxc"]]; ``` DMD complains that it > cannot implicitly convert expression `[["wxc"]]` of type `string[][]` to `string[2][]` but it should rather say that > cannot implicitly convert expression `[["wxc"]]` of type `string[][]` to `string[2][2]`
Comment #1 by robert.schadek — 2024-12-13T19:18:41Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19991 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB