mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Matchable should have no effect on intersections.
This commit is contained in:
@@ -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