solidity/test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol
2020-07-14 12:42:47 +05:30

9 lines
156 B
Solidity

contract C {
uint s;
function f() public constant returns (uint) {
return s;
}
}
// ----
// ParserError 2314: (43-51): Expected '{' but got 'constant'