aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/inline_array_declaration.sol
blob: 4730f9502e31b9bf2332df5884ab3fdff978f100 (plain) (blame)
1
2
3
4
5
6
7
8
contract c {
    uint[] a;
    function f() public returns (uint, uint) {
        a = [1,2,3];
        return (a[3], [2,3,4][0]);
    }
}
// ----