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

9 lines
146 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract c {
uint[] a;
function f() public returns (uint, uint) {
2018-05-17 07:04:39 +00:00
a = [1,2,3];
return (a[3], [2,3,4][0]);
}
}
// ----