🐛 Adding a const
modifier for the first type parameter of an arrow function produces a parsing error
#846
Labels
A-Parser
Area: parser
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
When enabling TypeScript and JSX, the following code produces a parsing error:
<const T,>
is erroneously parsed as a JSX tag.Playground link
Expected result
The input should be parsed as an arrow function.
Code of Conduct
The text was updated successfully, but these errors were encountered: