mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
244 B
Solidity
7 lines
244 B
Solidity
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.
|