mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
200 B
Solidity
14 lines
200 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);
|
|
}
|
|
}
|
|
// ----
|
|
// f() -> 84, 23
|