File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -6524,6 +6524,7 @@ namespace ts {
6524
6524
let targetStack: Type[];
6525
6525
let depth = 0;
6526
6526
let inferiority = 0;
6527
+ const visited: Map<boolean> = {};
6527
6528
inferFromTypes(source, target);
6528
6529
6529
6530
function isInProcess(source: Type, target: Type) {
@@ -6653,6 +6654,12 @@ namespace ts {
6653
6654
return;
6654
6655
}
6655
6656
6657
+ const key = source.id + "," + target.id;
6658
+ if (hasProperty(visited, key)) {
6659
+ return;
6660
+ }
6661
+ visited[key] = true;
6662
+
6656
6663
if (depth === 0) {
6657
6664
sourceStack = [];
6658
6665
targetStack = [];
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ declare namespace ts.server.protocol {
469
469
placeOpenBraceOnNewLineForControlBlocks ?: boolean ;
470
470
471
471
/** Index operator */
472
- [ key : string ] : string | number | boolean ;
472
+ [ key : string ] : string | number | boolean ;
473
473
}
474
474
475
475
/**
You can’t perform that action at this time.
0 commit comments