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

7 lines
161 B
Solidity
Raw Normal View History

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