[Issue 3824] An AA with an AA as key doesn't seem to work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 21 13:57:55 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=3824



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-21 13:57:54 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > It doesn't work still, see:
> > 
> > void main() {
> >     int[int] aa1 = [1: 2];
> >     int[int] aa2 = [1: 2];
> >     int[int[int]] aa3;
> >     aa3[aa1] = 1;
> >     aa3[aa2] = 2;
> >     assert(aa3.length == 1);
> > }
> > 
> > 
> > In DMD 2.061alpha the aa3 has two identical keys.
> 
> Have you tried HEAD? I see two keys:
> assert(aa3.length == 2);  // passes for me

On second thought I'm not sure what you're asking. You want the two keys to be
just one key?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list