Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Did you forget to call 'X'?" for assignability errors #25308

Closed
DanielRosenwasser opened this issue Jun 28, 2018 · 0 comments · Fixed by #27016
Closed

"Did you forget to call 'X'?" for assignability errors #25308

DanielRosenwasser opened this issue Jun 28, 2018 · 0 comments · Fixed by #27016
Assignees
Labels
Bug A bug in TypeScript Domain: Error Messages The issue relates to error messaging Fixed A PR has been merged for this issue

Comments

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Jun 28, 2018

Discussed at #25306

We noticed a relatively high-occurring instance of an error:

Type X is not assignable to type () => X.
Type () => X is not assignable to type X.

Similarly, you can find users reporting issues on

Type Date is not assignable to type DateConstructor.
Type DateConstructor is not assignable to type Date.

We should see if the user forgot to call (or construct) one of the respective types if we can pull apart the context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Error Messages The issue relates to error messaging Fixed A PR has been merged for this issue
Projects
None yet
3 participants