October 08, 2021 [Issue 22371] New: wrong type in error on failed implicit conversions to ndims static arrays | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22371 Issue ID: 22371 Summary: wrong type in error on failed implicit conversions to ndims static arrays Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: diagnostic Severity: minor Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: b2.temp@gmx.com 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]` -- |
Copyright © 1999-2021 by the D Language Foundation