solidity/test/libsolidity/semanticTests/immutable/stub.sol
2020-05-04 15:00:50 +02:00

16 lines
238 B
Solidity

contract C {
uint256 immutable x;
uint256 immutable y;
constructor() public {
x = 42;
y = 23;
}
function f() public view returns (uint256, uint256) {
return (x+x,y);
}
}
// ====
// compileViaYul: also
// ----
// f() -> 84, 23