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: [email protected]
Reporter: [email protected]
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)
--