solidity/test/libsolidity/semanticTests/array/fixed_arrays_in_constructors.sol
2020-03-19 14:42:25 +01:00

15 lines
230 B
Solidity

contract Creator {
uint256 public r;
address public ch;
constructor(address[3] memory s, uint256 x) public {
r = x;
ch = s[2];
}
}
// ----
// constructor(): 1, 2, 3, 4 ->
// r() -> 4
// ch() -> 3