Skip to content

Commit a65794c

Browse files
committed
Add resetErrorInfo (though, oddly, shouldn't be necessary)
1 parent a009ee1 commit a65794c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18375,7 +18375,9 @@ namespace ts {
1837518375
}
1837618376
}
1837718377
else if (source.flags & TypeFlags.StructuredOrInstantiable || target.flags & TypeFlags.StructuredOrInstantiable) {
18378-
result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags);
18378+
if (result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState, recursionFlags)) {
18379+
resetErrorInfo(saveErrorInfo);
18380+
}
1837918381
}
1838018382
if (!result && source.flags & (TypeFlags.Intersection | TypeFlags.TypeParameter)) {
1838118383
// The combined constraint of an intersection type is the intersection of the constraints of

0 commit comments

Comments
 (0)