[Issue 1640] New: Can't slice array literal directly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 4 09:51:59 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1640
Summary: Can't slice array literal directly
Product: D
Version: 1.022
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: matti.niemenmaa+dbugzilla at iki.fi
void main() {
int[] foo = [1,2,3][];
}
asdf.d(2): semicolon expected, not '['
void main() {
int[] foo = [1,2,3][0..1];
}
asdf.d(2): semicolon expected, not '['
asdf.d(2): found '..' when expecting ','
--
More information about the Digitalmars-d-bugs
mailing list