solidity/test/libsolidity/syntaxTests/parsing/if_statement.sol
2020-01-08 16:12:06 +01:00

9 lines
262 B
Solidity

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".