solidity/test/libsolidity/syntaxTests/parsing/if_statement.sol

9 lines
269 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract test {
function fun(uint256 a) public returns (uint) {
if (a >= 8) { return 2; } else { uint b = 7; }
2018-05-17 07:04:39 +00:00
}
}
// ----
// Warning 2072: (109-115): Unused local variable.
// Warning 2018: (20-128): Function state mutability can be restricted to pure