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:
erictsangx
2015-12-08 17:47:40 +08:00
parent 64681394d8
commit f6454326dd
+1 -1
View File
@@ -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
},