Skip to content

Commit eaba5a1

Browse files
committed
Don't skip elaborations when reporting errors for cached failed relations
1 parent b87e301 commit eaba5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21205,7 +21205,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2120521205
const id = getRelationKey(source, target, intersectionState, relation, /*ignoreConstraints*/ false);
2120621206
const entry = relation.get(id);
2120721207
if (entry !== undefined) {
21208-
if (reportErrors && entry & RelationComparisonResult.Failed && !(entry & RelationComparisonResult.Reported)) {
21208+
if (reportErrors && entry & RelationComparisonResult.Failed) {
2120921209
// We are elaborating errors and the cached result is an unreported failure. The result will be reported
2121021210
// as a failure, and should be updated as a reported failure by the bottom of this function.
2121121211
}

0 commit comments

Comments
 (0)