September 29, 2023 [Issue 24169] New: Confusion between array literal and associative array literal | ||||
---|---|---|---|---|
| ||||
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. -- |
Copyright © 1999-2021 by the D Language Foundation