No weak type checks with comparable relation

This commit is contained in:
Anders Hejlsberg
2017-06-02 13:37:34 -07:00
parent 3e4b83ea3e
commit 2876b3caba

View File

@@ -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 &&