TypeScript/tests/baselines/reference/fallFromLastCase1.symbols
2016-03-01 15:58:59 -08:00

43 lines
1 KiB
Plaintext

=== tests/cases/compiler/fallFromLastCase1.ts ===
declare function use(a: string);
>use : Symbol(use, Decl(fallFromLastCase1.ts, 0, 0))
>a : Symbol(a, Decl(fallFromLastCase1.ts, 1, 21))
function foo1(a: number) {
>foo1 : Symbol(foo1, Decl(fallFromLastCase1.ts, 1, 32))
>a : Symbol(a, Decl(fallFromLastCase1.ts, 3, 14))
switch (a) {
>a : Symbol(a, Decl(fallFromLastCase1.ts, 3, 14))
case 1:
use("1");
>use : Symbol(use, Decl(fallFromLastCase1.ts, 0, 0))
break;
case 2:
use("2");
>use : Symbol(use, Decl(fallFromLastCase1.ts, 0, 0))
}
}
function foo2(a: number) {
>foo2 : Symbol(foo2, Decl(fallFromLastCase1.ts, 11, 1))
>a : Symbol(a, Decl(fallFromLastCase1.ts, 14, 14))
switch (a) {
>a : Symbol(a, Decl(fallFromLastCase1.ts, 14, 14))
case 1:
use("1");
>use : Symbol(use, Decl(fallFromLastCase1.ts, 0, 0))
break;
default:
use("2");
>use : Symbol(use, Decl(fallFromLastCase1.ts, 0, 0))
}
}