swc/crates/swc_ecma_lints/tests/pass/issue-3266/1/input.js

9 lines
160 B
JavaScript
Raw Normal View History

function bar(fooArg) {
switch (true) {
case true:
const fooArg = "test";
return "bar() result";
}
}
console.log(bar());