Bug 19844 – opEqual on const associative array doesn't work with AA literal

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-05-04T16:45:52Z
Last change time
2024-12-13T19:03:10Z
Assigned to
No Owner
Creator
Ali Ak
Moved to GitHub: dmd#19559 →

Comments

Comment #0 by ali.akhtarzada — 2019-05-04T16:45:52Z
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]:
Comment #1 by robert.schadek — 2024-12-13T19:03:10Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19559 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB