You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@quickfur created dlang/druntime pull request #2838 "Fix issue 11725: AA.dup should return mutable AA where possible." fixing this issue:
- Fix issue 11725: AA.dup should return mutable AA where possible.
Since the original AA has been duplicated, it should be safe to mutate
the copy. No need to needlessly restrict the copy to be const too.
https://github.com/dlang/druntime/pull/2838
@ntrel updated dlang/dmd pull request #16979 "Fix issue 11725: AA.dup should return mutable AA where possible" fixing this issue:
- Fix Bugzilla 11725: AA.dup should return mutable AA where possible
Since the original AA has been duplicated, it should be safe to mutate
the copy. No need to restrict the copy to be const too.
https://github.com/dlang/dmd/pull/16979
Jerry Quinn (@jlquinn) reported this on 2013-12-11T07:02:21Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=11725
CC List
Description
void foo() { const int[] aa = [1,2]; int[] bb = aa.dup; // Works const int[string] ia = ["a":1,"b":2]; int[string] ib = ia.dup; // Error } /home/jlquinn/dmd2/linux/bin64/dmd -c aabug.d aabug.d(7): Error: cannot implicitly convert expression (ia.dup()) of type const(int)[string] to int[string] Version 2.064.2 on Debian x86_64The text was updated successfully, but these errors were encountered: