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
@@ -19725,12 +19729,10 @@ m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n")
19725
19729
const constraint = getConstraintOfType(source as TypeVariable) || unknownType;
19726
19730
// hi-speed no-this-instantiation check (less accurate, but avoids costly `this`-instantiation when the constraint will suffice), see #28231 for report on why this is needed
// slower, fuller, this-instantiated check (necessary when comparing raw `this` types from base classes), see `subclassWithPolymorphicThisIsAssignable.ts` test for example
if (constraint && (result = isRelatedTo(constraint, target, RecursionFlags.Source, reportErrors))) {
19777
-
resetErrorInfo(saveErrorInfo);
19778
19775
return result;
19779
19776
}
19780
19777
}
@@ -19783,7 +19780,6 @@ m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n")
19783
19780
// If we reach 10 levels of nesting for the same conditional type, assume it is an infinitely expanding recursive
19784
19781
// conditional type and bail out with a Ternary.Maybe result.
19785
19782
if (isDeeplyNestedType(source, sourceStack, sourceDepth, 10)) {
19786
-
resetErrorInfo(saveErrorInfo);
19787
19783
return Ternary.Maybe;
19788
19784
}
19789
19785
if (targetFlags & TypeFlags.Conditional) {
@@ -19806,7 +19802,6 @@ m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n")
19806
19802
result &= isRelatedTo(getFalseTypeFromConditionalType(source as ConditionalType), getFalseTypeFromConditionalType(target as ConditionalType), RecursionFlags.Both, reportErrors);
19807
19803
}
19808
19804
if (result) {
19809
-
resetErrorInfo(saveErrorInfo);
19810
19805
return result;
19811
19806
}
19812
19807
}
@@ -19817,7 +19812,6 @@ m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n")
19817
19812
const distributiveConstraint = hasNonCircularBaseConstraint(source) ? getConstraintOfDistributiveConditionalType(source as ConditionalType) : undefined;
19818
19813
if (distributiveConstraint) {
19819
19814
if (result = isRelatedTo(distributiveConstraint, target, RecursionFlags.Source, reportErrors)) {
19820
-
resetErrorInfo(saveErrorInfo);
19821
19815
return result;
19822
19816
}
19823
19817
}
@@ -19828,7 +19822,6 @@ m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n")
19828
19822
const defaultConstraint = getDefaultConstraintOfConditionalType(source as ConditionalType);
19829
19823
if (defaultConstraint) {
19830
19824
if (result = isRelatedTo(defaultConstraint, target, RecursionFlags.Source, reportErrors)) {
19831
-
resetErrorInfo(saveErrorInfo);
19832
19825
return result;
19833
19826
}
19834
19827
}
@@ -19841,7 +19834,6 @@ m2: ${(this.mapper2 as unknown as DebugTypeMapper).__debugToString().split("\n")
19841
19834
if (isGenericMappedType(target)) {
19842
19835
if (isGenericMappedType(source)) {
19843
19836
if (result = mappedTypeRelatedTo(source, target, reportErrors)) {
0 commit comments