No subtype reduction in includeFalsyTypes

It's not really needed and caused #13826.
This commit is contained in:
Nathan Shively-Sanders
2017-02-07 09:47:10 -08:00
parent 94aeff2a2c
commit e03509affa
5 changed files with 78 additions and 1 deletions

View File

@@ -8540,7 +8540,7 @@ namespace ts {
if (flags & TypeFlags.Void) types.push(voidType);
if (flags & TypeFlags.Undefined) types.push(undefinedType);
if (flags & TypeFlags.Null) types.push(nullType);
return getUnionType(types, /*subtypeReduction*/ true);
return getUnionType(types);
}
function removeDefinitelyFalsyTypes(type: Type): Type {