mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
264 B
D
15 lines
264 B
D
// https://issues.dlang.org/show_bug.cgi?id=3290
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail3290.d(12): Error: argument type mismatch, `const(int)` to `ref int`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
const(int)[] array;
|
|
foreach (ref int i; array) {
|
|
//i = 42;
|
|
}
|
|
}
|