solidity/test/libsolidity/syntaxTests/constants/assign_constant_function_value.sol

7 lines
186 B
Solidity
Raw Normal View History

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