TypeScript/tests/baselines/reference/switchFallThroughs.types
2016-06-20 12:16:43 -07:00

43 lines
533 B
Plaintext

=== tests/cases/compiler/switchFallThroughs.ts ===
function R1(index: number) {
>R1 : (index: number) => string
>index : number
switch (index) {
>index : number
case 0:
>0 : 0
case 1:
>1 : 1
case 2:
>2 : 2
var a = 'a';
>a : string
>'a' : string
return a;
>a : string
case 3:
>3 : 3
case 4: {
>4 : 4
return 'b';
>'b' : string
}
case 5:
>5 : 5
default:
return 'c';
>'c' : string
}
}