May 04, 2019 [Issue 19844] New: opEqual on const associative array doesn't work with AA literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19844 Issue ID: 19844 Summary: opEqual on const associative array doesn't work with AA literal Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: enhancement Priority: P3 Component: dmd Assignee: nobody@puremagic.com Reporter: ali.akhtarzada@gmail.com void main() { const a = [1:1]; assert(a == [1:1]); } Results in Error: incompatible types for (a) == ([1:1]): const(int[int]) and int[int]: -- |
Copyright © 1999-2021 by the D Language Foundation