clawchain/solar/tests/ui/parser/yul/bad_switch.sol

9 lines
190 B
Solidity

function f() {
assembly {
switch 42 //~ ERROR: `switch` statement has no cases
switch 42 //~ WARN: `switch` statement has only a default case
default {}
}
}