mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
fbb2755f29
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
125 lines
2.9 KiB
Plaintext
125 lines
2.9 KiB
Plaintext
//// [tests/cases/compiler/reachabilityChecks11.ts] ////
|
|
|
|
=== reachabilityChecks11.ts ===
|
|
// while (true);
|
|
var x = 1;
|
|
>x : Symbol(x, Decl(reachabilityChecks11.ts, 1, 3))
|
|
|
|
namespace A {
|
|
>A : Symbol(A, Decl(reachabilityChecks11.ts, 1, 10))
|
|
|
|
while (true);
|
|
let x;
|
|
>x : Symbol(x, Decl(reachabilityChecks11.ts, 5, 7))
|
|
}
|
|
|
|
namespace A1 {
|
|
>A1 : Symbol(A1, Decl(reachabilityChecks11.ts, 6, 1))
|
|
|
|
do {} while(true);
|
|
namespace A {
|
|
>A : Symbol(A, Decl(reachabilityChecks11.ts, 9, 22))
|
|
|
|
interface F {}
|
|
>F : Symbol(F, Decl(reachabilityChecks11.ts, 10, 17))
|
|
}
|
|
}
|
|
|
|
namespace A2 {
|
|
>A2 : Symbol(A2, Decl(reachabilityChecks11.ts, 13, 1))
|
|
|
|
while (true);
|
|
namespace A {
|
|
>A : Symbol(A, Decl(reachabilityChecks11.ts, 16, 17))
|
|
|
|
var x = 1;
|
|
>x : Symbol(x, Decl(reachabilityChecks11.ts, 18, 11))
|
|
}
|
|
}
|
|
|
|
namespace A3 {
|
|
>A3 : Symbol(A3, Decl(reachabilityChecks11.ts, 20, 1))
|
|
|
|
while (true);
|
|
type T = string;
|
|
>T : Symbol(T, Decl(reachabilityChecks11.ts, 23, 17))
|
|
}
|
|
|
|
namespace A4 {
|
|
>A4 : Symbol(A4, Decl(reachabilityChecks11.ts, 25, 1))
|
|
|
|
while (true);
|
|
namespace A {
|
|
>A : Symbol(A, Decl(reachabilityChecks11.ts, 28, 17))
|
|
|
|
const enum E { X }
|
|
>E : Symbol(E, Decl(reachabilityChecks11.ts, 29, 17))
|
|
>X : Symbol(E.X, Decl(reachabilityChecks11.ts, 30, 22))
|
|
}
|
|
}
|
|
|
|
function f1(x) {
|
|
>f1 : Symbol(f1, Decl(reachabilityChecks11.ts, 32, 1))
|
|
>x : Symbol(x, Decl(reachabilityChecks11.ts, 34, 12), Decl(reachabilityChecks11.ts, 41, 7))
|
|
|
|
if (x) {
|
|
>x : Symbol(x, Decl(reachabilityChecks11.ts, 34, 12), Decl(reachabilityChecks11.ts, 41, 7))
|
|
|
|
return;
|
|
}
|
|
else {
|
|
throw new Error("123");
|
|
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --))
|
|
}
|
|
var x;
|
|
>x : Symbol(x, Decl(reachabilityChecks11.ts, 34, 12), Decl(reachabilityChecks11.ts, 41, 7))
|
|
}
|
|
|
|
function f2() {
|
|
>f2 : Symbol(f2, Decl(reachabilityChecks11.ts, 42, 1))
|
|
|
|
return;
|
|
class A {
|
|
>A : Symbol(A, Decl(reachabilityChecks11.ts, 45, 11))
|
|
}
|
|
}
|
|
|
|
namespace B {
|
|
>B : Symbol(B, Decl(reachabilityChecks11.ts, 48, 1))
|
|
|
|
for (; ;);
|
|
namespace C {
|
|
>C : Symbol(C, Decl(reachabilityChecks11.ts, 51, 14))
|
|
}
|
|
}
|
|
|
|
function f3() {
|
|
>f3 : Symbol(f3, Decl(reachabilityChecks11.ts, 54, 1))
|
|
|
|
do {
|
|
} while (true);
|
|
enum E {
|
|
>E : Symbol(E, Decl(reachabilityChecks11.ts, 58, 19))
|
|
|
|
X = 1
|
|
>X : Symbol(E.X, Decl(reachabilityChecks11.ts, 59, 12))
|
|
}
|
|
}
|
|
|
|
function f4() {
|
|
>f4 : Symbol(f4, Decl(reachabilityChecks11.ts, 62, 1))
|
|
|
|
if (true) {
|
|
throw new Error();
|
|
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --))
|
|
}
|
|
const enum E {
|
|
>E : Symbol(E, Decl(reachabilityChecks11.ts, 67, 5))
|
|
|
|
X = 1
|
|
>X : Symbol(E.X, Decl(reachabilityChecks11.ts, 68, 18))
|
|
}
|
|
}
|
|
|
|
|