aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/inline_array_declaration.sol
blob: f42f8f16b7c6ce33b7c10d01fb9b974d23769d1c (plain) (blame)
1
2
3
4
5
6
7
8
9
contract c {
    uint[] a;
    function f() returns (uint, uint) {
        a = [1,2,3];
        return (a[3], [2,3,4][0]);
    }
}
// ----
// Warning: (31-128): No visibility specified. Defaulting to "public".