solidity/test/libsolidity/syntaxTests/constants/assign_constant_function_value.sol
2022-04-01 23:41:18 -05:00

7 lines
192 B
Solidity

contract C {
function () pure returns (uint) x;
uint constant y = x();
}
// ----
// TypeError 8349: (74-77='x()'): Initial value for constant variable has to be compile-time constant.