]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
5fee5ec3 | 4 | fail_compilation/diag10926.d(11): Error: `cast(const(int)[])c` is not an lvalue and cannot be modified |
b4c522fa IB |
5 | --- |
6 | */ | |
7 | ||
8 | void main() { | |
9 | const(int)[] a, b; | |
10 | int[] c, d; | |
11 | (true ? a : c) ~= 20; // line 6, Error: a is not an lvalue | |
12 | } |