mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
231 B
Solidity
16 lines
231 B
Solidity
contract C {
|
|
uint256 immutable x;
|
|
uint256 immutable y;
|
|
constructor() {
|
|
x = 42;
|
|
y = 23;
|
|
}
|
|
function f() public view returns (uint256, uint256) {
|
|
return (x+x,y);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f() -> 84, 23
|