digitalmars.D.bugs - [Issue 24169] New: Confusion between array literal and associative
- d-bugmail puremagic.com (20/20) Sep 28 2023 https://issues.dlang.org/show_bug.cgi?id=24169
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 puremagic.com Reporter: bugzilla 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. --
Sep 28 2023