Files
tsgo/testdata/baselines/reference/compiler/reachabilityChecksIgnored.js

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");
}