Skip to content

Commit

Permalink
Don't pass a candidates array to getResolvedSignature (#31203)
Browse files Browse the repository at this point in the history
Found when investigating #30505
  • Loading branch information
RyanCavanaugh committed May 1, 2019
1 parent 56b19c9 commit a86fa20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/symbolDisplay.ts
Expand Up @@ -171,8 +171,7 @@ namespace ts.SymbolDisplay {
}

if (callExpressionLike) {
const candidateSignatures: Signature[] = [];
signature = typeChecker.getResolvedSignature(callExpressionLike, candidateSignatures)!; // TODO: GH#18217
signature = typeChecker.getResolvedSignature(callExpressionLike)!; // TODO: GH#18217

const useConstructSignatures = callExpressionLike.kind === SyntaxKind.NewExpression || (isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === SyntaxKind.SuperKeyword);

Expand Down

0 comments on commit a86fa20

Please sign in to comment.