Function call gives bogus error about type arguments when real problem is a missing argument #25683
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: master (60986ad)
Search Terms: "expected" "type arguments but got"
Code
Expected behavior: Error: Expected 1 arguments, but got 0.
Actual behavior: Error: Expected 1-2 type arguments, but got 1.
Playground Link: link
Related Issues: #19374
The text was updated successfully, but these errors were encountered: