solidity/test/libsolidity/semanticTests/array/fixed_arrays_in_constructors.sol
2020-07-07 12:16:18 +02:00

16 lines
253 B
Solidity

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