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

21 lines
626 B
Plaintext

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