mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00: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