Don't pass a candidates array to getResolvedSignature (#31203)
Found when investigating #30505
This commit is contained in:
parent
56b19c9bf0
commit
a86fa20b02
1 changed files with 1 additions and 2 deletions
|
@ -171,8 +171,7 @@ namespace ts.SymbolDisplay {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (callExpressionLike) {
|
if (callExpressionLike) {
|
||||||
const candidateSignatures: Signature[] = [];
|
signature = typeChecker.getResolvedSignature(callExpressionLike)!; // TODO: GH#18217
|
||||||
signature = typeChecker.getResolvedSignature(callExpressionLike, candidateSignatures)!; // TODO: GH#18217
|
|
||||||
|
|
||||||
const useConstructSignatures = callExpressionLike.kind === SyntaxKind.NewExpression || (isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === SyntaxKind.SuperKeyword);
|
const useConstructSignatures = callExpressionLike.kind === SyntaxKind.NewExpression || (isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === SyntaxKind.SuperKeyword);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue