Skip to content

Commit 79e2ed2

Browse files
authored
Merge pull request microsoft#39776 from amcasey/OverloadErrors
Reduce unnecessary error computation
2 parents 1f1521c + 195fad2 commit 79e2ed2

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
@@ -26438,7 +26438,7 @@ namespace ts {
2643826438
const isTaggedTemplate = node.kind === SyntaxKind.TaggedTemplateExpression;
2643926439
const isDecorator = node.kind === SyntaxKind.Decorator;
2644026440
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
26441-
const reportErrors = !candidatesOutArray;
26441+
const reportErrors = !candidatesOutArray && produceDiagnostics;
2644226442

2644326443
let typeArguments: NodeArray<TypeNode> | undefined;
2644426444

0 commit comments

Comments
 (0)