solidity/test/libsolidity/syntaxTests/parsing/inline_array_empty_cells_check_lvalue.sol

10 lines
187 B
Solidity
Raw Normal View History

2018-05-02 19:49:59 +00:00
contract c {
uint[] a;
function f() returns (uint) {
a = [,2,3];
return (a[0]);
}
}
// ----
2018-05-09 11:15:27 +00:00
// ParserError: (62-63): Expected expression (inline array elements cannot be omitted).