File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14613,9 +14613,11 @@ namespace ts {
14613
14613
const candidate = propagationType || source;
14614
14614
// We make contravariant inferences only if we are in a pure contravariant position,
14615
14615
// i.e. only if we have not descended into a bivariant position.
14616
- if (contravariant && !bivariant && !contains(inference.contraCandidates, candidate)) {
14617
- inference.contraCandidates = append(inference.contraCandidates, candidate);
14618
- inference.inferredType = undefined;
14616
+ if (contravariant && !bivariant) {
14617
+ if (!contains(inference.contraCandidates, candidate)) {
14618
+ inference.contraCandidates = append(inference.contraCandidates, candidate);
14619
+ inference.inferredType = undefined;
14620
+ }
14619
14621
}
14620
14622
else if (!contains(inference.candidates, candidate)) {
14621
14623
inference.candidates = append(inference.candidates, candidate);
You can’t perform that action at this time.
0 commit comments