http://d.puremagic.com/issues/show_bug.cgi?id=8390
Summary: Refused array operation mutable[] += const[] Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: regression Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-07-15 07:48:17 PDT --- See Issue 4662 for some context. void main() { const int[] a = new int[5]; int[] b = new int[5]; b[] += a[]; } Gives, DMD 2.060alpha: test.d(4): Error: slice cast(const(int)[])b[] is not mutable -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------