mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
253 B
Solidity
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
|