[Issue 4662] Array ops on const arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 15 04:15:22 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4662
--- Comment #6 from bearophile_hugs at eml.cc 2012-07-15 04:15:20 PDT ---
The two problems of the example seems fixed. Now this program:
void main() {
const int[] a = new int[5];
int[] b = new int[5];
b[] += a[];
}
Gives:
test.d(4): Error: slice cast(const(int)[])b[] is not mutable
I think is a rejects-valid.
--
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