1 2 3 4 5 6 7 8
contract c { function fun() public returns (uint r) { uint _ = 8; return _ + 1; } } // ---- // Warning: (17-105): Function state mutability can be restricted to pure