diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index dcc7adeac6f..2396c23c880 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17814,8 +17814,7 @@ namespace ts { } } if (source.flags & TypeFlags.StructuredOrInstantiable || target.flags & TypeFlags.StructuredOrInstantiable) { - return checkTypeRelatedTo(source, target, relation, - /*errorNode*/ undefined, /*headMessage*/ undefined, /*containingMessageChain*/ undefined, /*errorOutputContainer*/ undefined); + return checkTypeRelatedTo(source, target, relation, /*errorNode*/ undefined); } return false; } @@ -17925,6 +17924,7 @@ namespace ts { Debug.assert(!!errorOutputContainer.errors, "missed opportunity to interact with error."); } + return result !== Ternary.False; function resetErrorInfo(saved: ReturnType) {