solidity/test/libsolidity/syntaxTests/viewPureChecker/suggest_view.sol
2018-06-06 15:41:41 +01:00

7 lines
161 B
Solidity

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