[Issue 11725] New: Cannot dup const AA
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 11 07:02:28 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11725
Summary: Cannot dup const AA
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jlquinn at optonline.net
--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2013-12-11 07:02:21 PST ---
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_64
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list