solidity/test/libsolidity/syntaxTests/controlFlow/unreachableCode/constant_condition.sol

9 lines
156 B
Solidity
Raw Normal View History

2019-01-08 18:33:46 +00:00
contract C {
function f() public pure {
if (false) {
return; // unreachable, but not yet detected
}
return;
}
}