1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
=== tests/cases/compiler/switchFallThroughs.ts ===
function R1(index: number) {
>R1 : Symbol(R1, Decl(switchFallThroughs.ts, 0, 0))
>index : Symbol(index, Decl(switchFallThroughs.ts, 0, 12))
switch (index) {
>index : Symbol(index, Decl(switchFallThroughs.ts, 0, 12))
case 0:
case 1:
case 2:
var a = 'a';
>a : Symbol(a, Decl(switchFallThroughs.ts, 5, 15))
return a;
>a : Symbol(a, Decl(switchFallThroughs.ts, 5, 15))
case 3:
case 4: {
return 'b';
}
case 5:
default:
return 'c';
}
}
|