Skip to content

Commit 54c0e75

Browse files
committed
Enable consistency check
1 parent cb2734d commit 54c0e75

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/compiler/checker.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23344,12 +23344,12 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2334423344
tracing?.pop();
2334523345
}
2334623346

23347-
// if (entry !== undefined) {
23348-
// // If the previous entry and the result disagree, then something has gone wrong.
23349-
// const entrySucceeded = !!(entry & RelationComparisonResult.Succeeded);
23350-
// const resultSucceeded = result !== Ternary.False;
23351-
// Debug.assertEqual(entrySucceeded, resultSucceeded, "Cached relationship does not match recalculated result");
23352-
// }
23347+
if (entry !== undefined) {
23348+
// If the previous entry and the result disagree, then something has gone wrong.
23349+
const entrySucceeded = !!(entry & RelationComparisonResult.Succeeded);
23350+
const resultSucceeded = result !== Ternary.False;
23351+
Debug.assertEqual(entrySucceeded, resultSucceeded, "Cached relationship does not match recalculated result");
23352+
}
2335323353

2335423354
if (outofbandVarianceMarkerHandler) {
2335523355
outofbandVarianceMarkerHandler = originalHandler;

0 commit comments

Comments
 (0)