aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/constants/assign_constant_function_value.sol
blob: 88e94e29f7ed7070f9af7df62266e8d51f5021fa (plain) (blame)
1
2
3
4
5
6
contract C {
    function () pure returns (uint) x;
    uint constant y = x();
}
// ----
// Warning: (74-77): Initial value for constant variable has to be compile-time constant. This will fail to compile with the next breaking version change.