solidity/test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol

9 lines
225 B
Solidity

contract C {
uint s;
function f() public constant returns (uint) {
return s;
}
}
// ----
// ParserError 7698: (43-51): The state mutability modifier "constant" was removed in version 0.5.0. Use "view" or "pure" instead.