mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
1017 B
Plaintext
30 lines
1017 B
Plaintext
//// [tests/cases/compiler/reachabilityChecksIgnored.ts] ////
|
|
|
|
=== reachabilityChecksIgnored.ts ===
|
|
function a() {
|
|
>a : Symbol(a, Decl(reachabilityChecksIgnored.ts, 0, 0))
|
|
|
|
throw new Error("");
|
|
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --))
|
|
|
|
// @ts-ignore
|
|
console.log("unreachable");
|
|
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
|
|
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
|
|
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
|
|
}
|
|
|
|
function b() {
|
|
>b : Symbol(b, Decl(reachabilityChecksIgnored.ts, 5, 1))
|
|
|
|
throw new Error("");
|
|
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2022.error.d.ts, --, --))
|
|
|
|
// @ts-expect-error
|
|
console.log("unreachable");
|
|
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
|
|
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
|
|
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
|
|
}
|
|
|