Skip to content

Commit 8f52f21

Browse files
committed
Fix broken check in getUnionType (check was always true)
1 parent 3e745e6 commit 8f52f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9359,7 +9359,7 @@ namespace ts {
93599359
}
93609360
switch (unionReduction) {
93619361
case UnionReduction.Literal:
9362-
if (includes & TypeFlags.StringOrNumberLiteralOrUnique | TypeFlags.BooleanLiteral) {
9362+
if (includes & (TypeFlags.Literal | TypeFlags.UniqueESSymbol)) {
93639363
removeRedundantLiteralTypes(typeSet, includes);
93649364
}
93659365
break;

0 commit comments

Comments
 (0)