Skip to content

Commit 4cac28e

Browse files
authored
Remove unused diagnostic 2346 (#54442)
1 parent 38a4ced commit 4cac28e

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33171,12 +33171,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3317133171
const candidates = candidatesOutArray || [];
3317233172
// reorderCandidates fills up the candidates array directly
3317333173
reorderCandidates(signatures, candidates, callChainFlags);
33174-
if (!candidates.length) {
33175-
if (reportErrors) {
33176-
diagnostics.add(getDiagnosticForCallNode(node, Diagnostics.Call_target_does_not_contain_any_signatures));
33177-
}
33178-
return resolveErrorCall(node);
33179-
}
33174+
Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this");
3318033175

3318133176
const args = getEffectiveCallArguments(node);
3318233177

src/compiler/diagnosticMessages.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,10 +1860,6 @@
18601860
"category": "Error",
18611861
"code": 2345
18621862
},
1863-
"Call target does not contain any signatures.": {
1864-
"category": "Error",
1865-
"code": 2346
1866-
},
18671863
"Untyped function calls may not accept type arguments.": {
18681864
"category": "Error",
18691865
"code": 2347

0 commit comments

Comments
 (0)