1 2 3 4 5 6 7 8 9 10 11 12 13
/* TEST_OUTPUT: --- fail_compilation/ice10419.d(12): Error: arr().length is not an lvalue --- */ int[] arr() { return []; } void main() { arr().length = 1; }