[Issue 10684] New: Refused array op with array literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 20 12:47:15 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10684
Summary: Refused array op with array literal
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-07-20 12:47:14 PDT ---
void main() {
int[] a = [0, 0];
a[] += [10, 20][];
}
DMD 2.064alpha gives:
test.d(3): Error: invalid array operation a[] += [10, 20] (did you forget a []
?)
I think this used to work.
Maybe related to Issue 10626
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list