Files
tsgo/testdata/tests/cases/compiler/reachabilityChecksIgnored.ts

18 lines
256 B
TypeScript

// @allowUnreachableCode: false
// @preserveConstEnums: true
function a() {
throw new Error("");
// @ts-ignore
console.log("unreachable");
}
function b() {
throw new Error("");
// @ts-expect-error
console.log("unreachable");
}