Skip to content

Commit cee933f

Browse files
Be more specific in errors.
1 parent b67f2d6 commit cee933f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24448,7 +24448,7 @@ namespace ts {
2444824448
const bodySignature = getSignatureFromDeclaration(bodyDeclaration);
2444924449
for (const signature of signatures) {
2445024450
if (!isImplementationCompatibleWithOverload(bodySignature, signature)) {
24451-
error(signature.declaration, Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);
24451+
error(signature.declaration, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature);
2445224452
break;
2445324453
}
2445424454
}

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@
14041404
"category": "Error",
14051405
"code": 2393
14061406
},
1407-
"Overload signature is not compatible with function implementation.": {
1407+
"This overload signature is not compatible with its implementation signature.": {
14081408
"category": "Error",
14091409
"code": 2394
14101410
},

0 commit comments

Comments
 (0)