mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
551 B
TypeScript
31 lines
551 B
TypeScript
//// [tests/cases/compiler/reachabilityChecksIgnored.ts] ////
|
|
|
|
//// [reachabilityChecksIgnored.ts]
|
|
function a() {
|
|
throw new Error("");
|
|
|
|
// @ts-ignore
|
|
console.log("unreachable");
|
|
}
|
|
|
|
function b() {
|
|
throw new Error("");
|
|
|
|
// @ts-expect-error
|
|
console.log("unreachable");
|
|
}
|
|
|
|
|
|
//// [reachabilityChecksIgnored.js]
|
|
"use strict";
|
|
function a() {
|
|
throw new Error("");
|
|
// @ts-ignore
|
|
console.log("unreachable");
|
|
}
|
|
function b() {
|
|
throw new Error("");
|
|
// @ts-expect-error
|
|
console.log("unreachable");
|
|
}
|