mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
256 B
TypeScript
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");
|
|
}
|