mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
626 B
Plaintext
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'.
|
|
|