mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
Infer intersection types for multiple contravariant candidates
This commit is contained in:
@@ -11271,7 +11271,7 @@ namespace ts {
|
||||
|
||||
function getTypeFromInference(inference: InferenceInfo) {
|
||||
return inference.candidates ? getUnionType(inference.candidates, UnionReduction.Subtype) :
|
||||
inference.contraCandidates ? getCommonSubtype(inference.contraCandidates) :
|
||||
inference.contraCandidates ? getIntersectionType(inference.contraCandidates) :
|
||||
undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user