swc/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements01.ts

13 lines
153 B
TypeScript

let x: "foo";
let y: "foo" | "bar";
switch (x) {
case "foo":
break;
case "bar":
break;
case y:
y;
break;
}