solidity/test/libsolidity/syntaxTests/controlFlow/unreachableCode/constant_condition.sol
2021-04-20 17:38:29 +02:00

10 lines
164 B
Solidity

contract C {
function f() public pure {
if (false) {
return; // unreachable, but not yet detected
}
return;
}
}
// ----