Merge pull request #39776 from amcasey/OverloadErrors

Reduce unnecessary error computation
This commit is contained in:
Andrew Casey 2020-07-28 10:35:22 -07:00 committed by GitHub
commit 79e2ed2e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26438,7 +26438,7 @@ namespace ts {
const isTaggedTemplate = node.kind === SyntaxKind.TaggedTemplateExpression;
const isDecorator = node.kind === SyntaxKind.Decorator;
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
const reportErrors = !candidatesOutArray;
const reportErrors = !candidatesOutArray && produceDiagnostics;
let typeArguments: NodeArray<TypeNode> | undefined;