mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 02:21:30 -05:00
No weak type checks with comparable relation
This commit is contained in:
@@ -8815,7 +8815,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