mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
13 lines
202 B
D
13 lines
202 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice10419.d(12): Error: cannot modify expression `arr().length` because it is not an lvalue
|
|
---
|
|
*/
|
|
|
|
int[] arr() { return []; }
|
|
|
|
void main()
|
|
{
|
|
arr().length = 1;
|
|
}
|