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

10 lines
211 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
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".