solidity/test/libsolidity/syntaxTests/immutable/ctor_initialization_indirect_reading.sol
2023-07-14 15:29:32 +02:00

9 lines
143 B
Solidity

contract C {
uint immutable x;
constructor() {
x = f();
}
function f() public view returns (uint) { return 3 + x; }
}