mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
//// [tests/cases/compiler/fallFromLastCase2.ts] ////
|
|
|
|
=== fallFromLastCase2.ts ===
|
|
declare function use(a: string);
|
|
>use : Symbol(use, Decl(fallFromLastCase2.ts, 0, 0))
|
|
>a : Symbol(a, Decl(fallFromLastCase2.ts, 0, 21))
|
|
|
|
function foo1(a: number) {
|
|
>foo1 : Symbol(foo1, Decl(fallFromLastCase2.ts, 0, 32))
|
|
>a : Symbol(a, Decl(fallFromLastCase2.ts, 2, 14))
|
|
|
|
switch (a) {
|
|
>a : Symbol(a, Decl(fallFromLastCase2.ts, 2, 14))
|
|
|
|
case 1:
|
|
use("1");
|
|
>use : Symbol(use, Decl(fallFromLastCase2.ts, 0, 0))
|
|
|
|
break;
|
|
case 2:
|
|
use("2");
|
|
>use : Symbol(use, Decl(fallFromLastCase2.ts, 0, 0))
|
|
|
|
case 3:
|
|
use("3");
|
|
>use : Symbol(use, Decl(fallFromLastCase2.ts, 0, 0))
|
|
}
|
|
}
|
|
|
|
|
|
function foo2(a: number) {
|
|
>foo2 : Symbol(foo2, Decl(fallFromLastCase2.ts, 12, 1))
|
|
>a : Symbol(a, Decl(fallFromLastCase2.ts, 15, 14))
|
|
|
|
switch (a) {
|
|
>a : Symbol(a, Decl(fallFromLastCase2.ts, 15, 14))
|
|
|
|
case 1:
|
|
use("1");
|
|
>use : Symbol(use, Decl(fallFromLastCase2.ts, 0, 0))
|
|
|
|
break;
|
|
default:
|
|
use("2");
|
|
>use : Symbol(use, Decl(fallFromLastCase2.ts, 0, 0))
|
|
|
|
case 2:
|
|
use("3");
|
|
>use : Symbol(use, Decl(fallFromLastCase2.ts, 0, 0))
|
|
}
|
|
}
|