aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/if_statement.sol
blob: b3269785dd6dd49e6231897fa1dfaea33d32c72d (plain) (blame)
1
2
3
4
5
6
7
8
contract test {
    function fun(uint256 a) public returns (uint) {
        if (a >= 8) { return 2; } else { uint b = 7; }
    }
}
// ----
// Warning: (109-115): Unused local variable.
// Warning: (20-128): Function state mutability can be restricted to pure