Skip to content

Commit 945babb

Browse files
committed
Fix inference circularity error triggered by exhaustive switch analysis
1 parent 59b76ce commit 945babb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/transformers/generators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2871,7 +2871,7 @@ namespace ts {
28712871
function tryEnterOrLeaveBlock(operationIndex: number): void {
28722872
if (blocks) {
28732873
for (; blockIndex < blockActions!.length && blockOffsets![blockIndex] <= operationIndex; blockIndex++) {
2874-
const block = blocks[blockIndex];
2874+
const block: CodeBlock = blocks[blockIndex];
28752875
const blockAction = blockActions![blockIndex];
28762876
switch (block.kind) {
28772877
case CodeBlockKind.Exception:

0 commit comments

Comments
 (0)