From ddc631c5d47150d5227470d64853a059d839e011 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 13 Dec 2017 13:41:17 -0800 Subject: [PATCH] Fix typo --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {