-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Give better message for rest parameter properties #8827
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Milestone
Description
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Type
Fields
Give feedbackNo fields configured for issues without a type.
If I write the following code:
then I get the error
',' expected..Instead, I should get an error like
A parameter property cannot be declared using a rest parameter.As motivation, for the following
we currently give the error
A parameter property may not be a binding pattern.Additionally, in fixing this, the two should be consistent. Preferably, the new error for the latter should be
A parameter property may not be declared using a binding pattern.