mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 05:17:43 -05:00
Merge pull request #16225 from Microsoft/sandersn/weakType
No weak type checks with comparable relation
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user