[Issue 19112] New: Associative array opIn with static array key fails with dynamic array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 23 07:35:42 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19112
Issue ID: 19112
Summary: Associative array opIn with static array key fails
with dynamic array
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: peter.alexander.au at gmail.com
void main() {
int[int[1]] aa;
aa[[2]] = 1;
assert([2] in aa);
}
---
This fails.
Expected: either pass or fail to compile.
Last reproduced in 2081.1.
--
More information about the Digitalmars-d-bugs
mailing list