solidity/test/libsolidity/syntaxTests/controlFlow/unreachableCode/if_both_return.sol
2019-01-10 10:36:50 +01:00

13 lines
222 B
Solidity

contract C {
function f(bool c) public pure {
if (c) {
return;
} else {
return;
}
return; // unreachable
}
}
// ----
// Warning: (142-149): Unreachable code.