solidity/test/libsolidity/syntaxTests/parsing/inline_array_declaration.sol
2018-05-22 13:25:04 +02:00

10 lines
211 B
Solidity

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".