File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -5228,9 +5228,12 @@ namespace ts {
5228
5228
const id = relation !== identityRelation || apparentSource.id < target.id ? apparentSource.id + "," + target.id : target.id + "," + apparentSource.id;
5229
5229
const related = relation[id];
5230
5230
if (related !== undefined) {
5231
- // If we computed this relation already and it was failed and reported, or if we're not being asked to elaborate
5232
- // errors, we can use the cached value. Otherwise, recompute the relation
5233
- if (!elaborateErrors || (related === RelationComparisonResult.FailedAndReported)) {
5231
+ if (elaborateErrors && related === RelationComparisonResult.Failed) {
5232
+ // We are elaborating errors and the cached result is an unreported failure. Record the result as a reported
5233
+ // failure and continue computing the relation such that errors get reported.
5234
+ relation[id] = RelationComparisonResult.FailedAndReported;
5235
+ }
5236
+ else {
5234
5237
return related === RelationComparisonResult.Succeeded ? Ternary.True : Ternary.False;
5235
5238
}
5236
5239
}
You can’t perform that action at this time.
0 commit comments