Skip to content

Commit c66b690

Browse files
authored
Merge pull request #39792 from amcasey/OverloadErrors4
Reduce unnecessary error computation
2 parents 2f3b835 + 2480458 commit c66b690

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
@@ -26310,7 +26310,7 @@ namespace ts {
2631026310
const isTaggedTemplate = node.kind === SyntaxKind.TaggedTemplateExpression;
2631126311
const isDecorator = node.kind === SyntaxKind.Decorator;
2631226312
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
26313-
const reportErrors = !candidatesOutArray;
26313+
const reportErrors = !candidatesOutArray && produceDiagnostics;
2631426314

2631526315
let typeArguments: NodeArray<TypeNode> | undefined;
2631626316

0 commit comments

Comments
 (0)