We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 243440a commit e7f415dCopy full SHA for e7f415d
src/compiler/checker.ts
@@ -6446,6 +6446,7 @@ namespace ts {
6446
let targetStack: Type[];
6447
let depth = 0;
6448
let inferiority = 0;
6449
+ const visited: Map<boolean> = {};
6450
inferFromTypes(source, target);
6451
6452
function isInProcess(source: Type, target: Type) {
@@ -6575,6 +6576,12 @@ namespace ts {
6575
6576
return;
6577
}
6578
6579
+ const key = source.id + "," + target.id;
6580
+ if (hasProperty(visited, key)) {
6581
+ return;
6582
+ }
6583
+ visited[key] = true;
6584
+
6585
if (depth === 0) {
6586
sourceStack = [];
6587
targetStack = [];
0 commit comments