diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 579e27a848a..718c7e541b9 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -9359,7 +9359,7 @@ namespace ts { } switch (unionReduction) { case UnionReduction.Literal: - if (includes & TypeFlags.StringOrNumberLiteralOrUnique | TypeFlags.BooleanLiteral) { + if (includes & (TypeFlags.Literal | TypeFlags.UniqueESSymbol)) { removeRedundantLiteralTypes(typeSet, includes); } break;