mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00: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