Gracefully parse and error on unparenthesized function/constructor types #39548
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
Motivated by #39546
Playground Link
We made a decision to disallow function and constructor shorthand types in these contexts, but as a result we have really poor error recovery.
We should be able to issue an error in these contexts:
The text was updated successfully, but these errors were encountered: