File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
2-
3-
41/* @internal */
52namespace ts {
63 const ambientModuleSymbolRegex = /^".+"$/;
@@ -13553,10 +13550,10 @@ namespace ts {
1355313550 // We make contravariant inferences only if we are in a pure contravariant position,
1355413551 // i.e. only if we have not descended into a bivariant position.
1355513552 if (contravariant && !bivariant) {
13556- inference.contraCandidates = append (inference.contraCandidates, candidate);
13553+ inference.contraCandidates = appendIfUnique (inference.contraCandidates, candidate);
1355713554 }
1355813555 else {
13559- inference.candidates = append (inference.candidates, candidate);
13556+ inference.candidates = appendIfUnique (inference.candidates, candidate);
1356013557 }
1356113558 }
1356213559 if (!(priority & InferencePriority.ReturnType) && target.flags & TypeFlags.TypeParameter && !isTypeParameterAtTopLevel(originalTarget, <TypeParameter>target)) {
You can’t perform that action at this time.
0 commit comments