aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/else_if_statement.sol
blob: c2a1aaeb7fc6403b0e846440dac232ff1b535e5e (plain) (blame)
1
2
3
4
5
6
7
contract test {
    function fun(uint256 a) public returns (uint8 b) {
        if (a < 0) b = 0x67; else if (a == 0) b = 0x12; else b = 0x78;
    }
}
// ----
// Warning: (20-147): Function state mutability can be restricted to pure