mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
220 B
Solidity
9 lines
220 B
Solidity
contract C {
|
|
uint s;
|
|
function f() public constant returns (uint) {
|
|
return s;
|
|
}
|
|
}
|
|
// ----
|
|
// ParserError: (43-51): The state mutability modifier "constant" was removed in version 0.5.0. Use "view" or "pure" instead.
|