https://issues.dlang.org/show_bug.cgi?id=1926

Andrei Alexandrescu <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED

--- Comment #5 from Andrei Alexandrescu <[email protected]> ---
This works in D2:

void main() {
    import std.stdio;

    int[int] aa1 = [1:2, 3:4];
    int[int] aa2 = [5:6, 7:8];
    byte[int[int]] s;
    writeln(aa1, " ", aa2); // Prints: [1:2,3:4] [5:6,7:8]

    s[aa1] = 1;
    s[aa2] = 2;
    writeln(s); // Prints: [[1:2,3:4]:2]
}

--

Reply via email to