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

9 lines
220 B
Solidity
Raw Normal View History

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