mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Matchable should have no effect on intersections.
This commit is contained in:
1 parent
262352ec5b
commit
bdb1db5ae4
1 file changed
+1
-6
@@ -4889,12 +4889,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
else if (target.flags & TypeFlags.Intersection) {
|
||||
if (relation === matchableRelation) {
|
||||
result = typeRelatedToSomeType(source, target as IntersectionType, reportErrors);
|
||||
}
|
||||
else {
|
||||
result = typeRelatedToEachType(source, <IntersectionType>target, reportErrors);
|
||||
}
|
||||
result = typeRelatedToEachType(source, <IntersectionType>target, reportErrors);
|
||||
|
||||
if (result) {
|
||||
return result;
|
||||
|
||||
Reference in new issue
Block a user