[Issue 13622] New: [AA] unable to compare const associative array with mutable
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Oct 16 14:54:24 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13622
Issue ID: 13622
Summary: [AA] unable to compare const associative array with
mutable
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: wazar.leollone at yahoo.com
void main()
{
int[int] aa1 = [1:2];
const int[int] aa2 = aa1;
assert(aa1 == aa2);
}
This code causes a error:
Error: incompatible types for ((aa1) == (aa2)): 'int[int]' and
'const(int[int])'
--
More information about the Digitalmars-d-bugs
mailing list