[Issue 16974] New: Equal associative arrays with associative array keys are considered unequal
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Dec 15 08:13:35 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16974
Issue ID: 16974
Summary: Equal associative arrays with associative array keys
are considered unequal
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: wrong-code
Severity: regression
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: verylonglogin.reg at gmail.com
This code should run fine:
---
void main()
{
int[int] a = [1 : 2];
assert([a : 3] == [a : 3]); // fails
assert([a : 3] == [[1 : 2] : 3]); // fails
}
---
--
More information about the Digitalmars-d-bugs
mailing list