aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker/suggest_view.sol
blob: c045dfc4c15b93ad2f678b41ce537cad0f3a8958 (plain) (blame)
1
2
3
4
5
6
contract C {
    uint x;
    function g() public returns (uint) { return x; }
}
// ----
// Warning: (29-77): Function state mutability can be restricted to view