Bug 3709 – Associative array of associative arrays gets confused

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-01-15T11:14:00Z
Last change time
2015-06-09T01:27:23Z
Keywords
rejects-valid
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2010-01-15T11:14:20Z
void main() { in[int][int] a; a[5] = (int[int]).init; } Error is: /path/to/druntime/import/object.di(293): Error: cannot implicitly convert expression (_D6object26__T16AssociativeArrayTiTiZ16AssociativeArray6__initZ) of type AssociativeArray!(int,int) to int[int]
Comment #1 by leandro.lucarella — 2010-01-15T15:23:58Z
You have a typo in the example code, right? "in[int][int] a;" should be "int[int][int] a;"?
Comment #2 by clugdbug — 2010-01-27T07:10:17Z
This is a regression: it worked in 2.035 and earlier.
Comment #3 by clugdbug — 2010-01-28T11:10:22Z
This is the same as bug 3491, and the 3491 patch fixes it. *** This issue has been marked as a duplicate of issue 3491 ***