You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (constraint && !(constraint.flags & TypeFlags.Never) && everyType(constraint, c => c !== source)) { // Skip comparison if expansion contains the source itself
19666
+
if (constraint && everyType(constraint, c => c !== source)) { // Skip comparison if expansion contains the source itself
19667
19667
// TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this
19668
19668
result = isRelatedTo(constraint, target, RecursionFlags.Source, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);
19669
19669
}
@@ -21630,8 +21630,7 @@ namespace ts {
21630
21630
}
21631
21631
21632
21632
function isUnitLikeType(type: Type): boolean {
21633
-
return type.flags & TypeFlags.Intersection ? some((type as IntersectionType).types, isUnitType) :
0 commit comments