diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 24dcc6afba9..77512625367 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -13309,7 +13309,7 @@ namespace ts { addNamedUnions(namedUnions, types); const reducedTypes: Type[] = []; for (const t of typeSet) { - if (!isNamedUnionType(t) && !some(namedUnions, union => containsType((union).types, t))) { + if (!some(namedUnions, union => containsType((union).types, t))) { reducedTypes.push(t); } }