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