Files
tsgo/testdata/baselines/reference/compiler/unreachableFlowAfterThrowingForHead1(allowunreachablecode=true).errors.txt

18 lines
461 B
Plaintext

unreachableFlowAfterThrowingForHead1.ts(11,2): error TS2304: Cannot find name 'as'.
==== unreachableFlowAfterThrowingForHead1.ts (1 errors) ====
try {
for (
(function () { throw "1"; })();
(function* () { throw "2"; })();
(function* () { throw "3"; })()
) {
console.log("1");
}
}
catch (e) { }
as ;
~~
!!! error TS2304: Cannot find name 'as'.