solidity/test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol
2018-07-03 15:31:34 +02:00

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.