contract C { function f() public { uint[] memory x; x.length = 2; } } // ---- // TypeError: (72-80): Member "length" is read-only and cannot be used to resize arrays.