mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Remove unused diagnostic 2346 (#54442)
This commit is contained in:
parent
38a4ced4e3
commit
4cac28ed57
@ -33171,12 +33171,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
const candidates = candidatesOutArray || [];
|
||||
// reorderCandidates fills up the candidates array directly
|
||||
reorderCandidates(signatures, candidates, callChainFlags);
|
||||
if (!candidates.length) {
|
||||
if (reportErrors) {
|
||||
diagnostics.add(getDiagnosticForCallNode(node, Diagnostics.Call_target_does_not_contain_any_signatures));
|
||||
}
|
||||
return resolveErrorCall(node);
|
||||
}
|
||||
Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this");
|
||||
|
||||
const args = getEffectiveCallArguments(node);
|
||||
|
||||
|
||||
@ -1860,10 +1860,6 @@
|
||||
"category": "Error",
|
||||
"code": 2345
|
||||
},
|
||||
"Call target does not contain any signatures.": {
|
||||
"category": "Error",
|
||||
"code": 2346
|
||||
},
|
||||
"Untyped function calls may not accept type arguments.": {
|
||||
"category": "Error",
|
||||
"code": 2347
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user