mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix issue: Confusing error message when calling value whose type is a union of types with call signatures
add diagnostic message 2658: Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures.
Closes #5640
This commit is contained in:
@@ -1007,7 +1007,7 @@
|
||||
"category": "Error",
|
||||
"code": 2348
|
||||
},
|
||||
"Cannot invoke an expression whose type lacks a call signature.": {
|
||||
"Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures.": {
|
||||
"category": "Error",
|
||||
"code": 2349
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user