solidity/test/libsolidity/syntaxTests/immutable/function_initialization.sol
2020-04-02 13:52:27 +02:00

6 lines
102 B
Solidity

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