solidity/test/libsolidity/syntaxTests/viewPureChecker/suggest_view.sol

7 lines
166 B
Solidity

contract C {
uint x;
function g() public returns (uint) { return x; }
}
// ----
// Warning 2018: (29-77): Function state mutability can be restricted to view