https://issues.dlang.org/show_bug.cgi?id=13900
Issue ID: 13900
Summary: A dup-ped associative array can't be assigned to
immutable
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: rejects-valid
Severity: enhancement
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
void main() {
int[int] aa1 = [1:2];
immutable aa2 = aa1.dup;
}
dmd 2.067alpha gives:
temp.d(3,24): Error: cannot implicitly convert expression (dup(aa1)) of type
int[int] to immutable(int[int])
--