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

9 lines
146 B
Solidity

contract c {
uint[] a;
function f() public returns (uint, uint) {
a = [1,2,3];
return (a[3], [2,3,4][0]);
}
}
// ----