diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 21fac5fe1e3..b9cd77966bc 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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; }