mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
324 B
Solidity
10 lines
324 B
Solidity
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
|