Bug 13900 – A dup-ped associative array can't be assigned to immutable

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-12-27T22:32:15Z
Last change time
2024-12-13T18:38:40Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
bearophile_hugs
Moved to GitHub: dmd#18925 →

Comments

Comment #0 by bearophile_hugs — 2014-12-27T22:32:15Z
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])
Comment #1 by robert.schadek — 2024-12-13T18:38:40Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18925 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB