aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/if_statement.sol
blob: 451fba1f155521c795f36a9f940aaa27ea9ab4d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract test {
    function fun(uint256 a) returns (uint) {
        if (a >= 8) { return 2; } else { uint b = 7; }
    }
}
// ----
// Warning: (20-121): No visibility specified. Defaulting to "public". 
// Warning: (102-108): Unused local variable.
// Warning: (20-121): Function state mutability can be restricted to pure