aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/inline_array_empty_cells_check_lvalue.sol
blob: 9460751c8fe83a72ca2eabe36f319c63656b8dfa (plain) (blame)
1
2
3
4
5
6
7
8
9
contract c {
    uint[] a;
    function f() returns (uint) {
        a = [,2,3];
        return (a[0]);
    }
}
// ----
// ParserError: (62-63): Expected expression (inline array elements cannot be omitted).