[Issue 14148] New: .dup of associative array is not mutable

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 8 07:50:03 PST 2015


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

          Issue ID: 14148
           Summary: .dup of associative array is not mutable
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: pro.mathias.lang at gmail.com

The following code:
string[string] cpAA(in string[string] ctx) { return ctx.dup; }

Gives this error:
bug.d(1): Error: cannot implicitly convert expression (dup(ctx)) of type
const(string)[string] to string[string]

Tested with 2.066 & master (b9c8ded)

--


More information about the Digitalmars-d-bugs mailing list