| 1 |
// https://issues.dlang.org/show_bug.cgi?id=3290 |
| 2 |
/* |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/fail3290.d(12): Error: argument type mismatch, `const(int)` to `ref int` |
| 6 |
--- |
| 7 |
*/ |
| 8 |
|
| 9 |
void main() |
| 10 |
{ |
| 11 |
const(int)[] array; |
| 12 |
foreach (ref int i; array) { |
| 13 |
//i = 42; |
| 14 |
} |
| 15 |
} |