solidity/test/libsolidity/syntaxTests/inline_arrays/lvalues_as_inline_array.sol
2022-04-01 23:41:18 -05:00

9 lines
195 B
Solidity

contract C {
function f() public {
[1, 2, 3]++;
[1, 2, 3] = [4, 5, 6];
}
}
// ----
// TypeError 3025: (47-56='[1, 2, 3]'): Inline array type cannot be declared as LValue.