[Issue 24169] New: Confusion between array literal and associative array literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 29 03:09:51 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24169
Issue ID: 24169
Summary: Confusion between array literal and associative array
literal
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
int[3] a = [3, 1:1, 2:2];
compiles, while:
auto a = [3, 1:1, 2:2];
fails with: "not an associative array initializer".
Seems there is some confusion about which it is.
--
More information about the Digitalmars-d-bugs
mailing list