diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 106d6391a91..f4e10aac606 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6394,7 +6394,7 @@ namespace ts { } if (t.flags & TypeFlags.Conditional) { const trueBaseType = getBaseConstraint((t).trueType); - const falseBaseType = getBaseConstraint((t).trueType); + const falseBaseType = getBaseConstraint((t).falseType); return trueBaseType && falseBaseType ? getUnionType([trueBaseType, falseBaseType]) : undefined; } if (t.flags & TypeFlags.Extends) {