File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
-
2
-
3
-
4
1
/* @internal */
5
2
namespace ts {
6
3
const ambientModuleSymbolRegex = /^".+"$/;
@@ -13553,10 +13550,10 @@ namespace ts {
13553
13550
// We make contravariant inferences only if we are in a pure contravariant position,
13554
13551
// i.e. only if we have not descended into a bivariant position.
13555
13552
if (contravariant && !bivariant) {
13556
- inference.contraCandidates = append (inference.contraCandidates, candidate);
13553
+ inference.contraCandidates = appendIfUnique (inference.contraCandidates, candidate);
13557
13554
}
13558
13555
else {
13559
- inference.candidates = append (inference.candidates, candidate);
13556
+ inference.candidates = appendIfUnique (inference.candidates, candidate);
13560
13557
}
13561
13558
}
13562
13559
if (!(priority & InferencePriority.ReturnType) && target.flags & TypeFlags.TypeParameter && !isTypeParameterAtTopLevel(originalTarget, <TypeParameter>target)) {
You can’t perform that action at this time.
0 commit comments