solidity/test/libsolidity/semanticTests/immutable/stub.sol
2020-07-07 12:16:18 +02:00

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