[Issue 6722] New: Can't remove a char[] key from an AA with immutable(char)[] key type.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 23 20:58:54 PDT 2011


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

           Summary: Can't remove a char[] key from an AA with
                    immutable(char)[] key type.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: siegelords_abode at yahoo.com


--- Comment #0 from siegelords_abode at yahoo.com 2011-09-23 20:58:23 PDT ---
int[char[]] a;
int[immutable(char)[]] b;

char[] s;

int v1 = a[s]; // Fine
int v2 = b[s]; // Fine
a.remove(s); // Fine
b.remove(s); // Error: cannot implicitly convert expression (s) of type char[]
to string

Can we be done with the compiler magic for the AA's?

-- 
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