27 lines
612 B
Text
27 lines
612 B
Text
=== 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';
|
|
}
|
|
}
|
|
|