diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 590b28f5cd4..1b3084f9cbd 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -8816,7 +8816,8 @@ namespace ts { } } - if (!(source.flags & TypeFlags.UnionOrIntersection) && + if (relation !== comparableRelation && + !(source.flags & TypeFlags.UnionOrIntersection) && !(target.flags & TypeFlags.Union) && !isIntersectionConstituent && source !== globalObjectType &&