solidity/test/libsolidity/syntaxTests/immutable/function_initialization.sol

6 lines
102 B
Solidity
Raw Normal View History

2020-03-10 17:15:50 +00:00
contract C {
uint immutable x = f();
function f() public pure returns (uint) { return 3; }
}