mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
261 B
Solidity
19 lines
261 B
Solidity
|
contract C {
|
||
|
int immutable x = 1;
|
||
|
int immutable y = 3;
|
||
|
|
||
|
constructor() {
|
||
|
x--;
|
||
|
--x;
|
||
|
y++;
|
||
|
++y;
|
||
|
--y;
|
||
|
}
|
||
|
|
||
|
function f() public view returns (int, int) {
|
||
|
return (x, y);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// f() -> -1, 4
|