solidity/test/libsolidity/syntaxTests/immutable/function_initialization.sol
2021-04-20 17:38:29 +02:00

7 lines
110 B
Solidity

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