🐛 Failed to parse const modifier. #1624
Labels
A-Parser
Area: parser
S-Bug-confirmed
Status: report has been confirmed as a valid bug
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Environment information
What happened?
If the type parameter of a function in method notation has a const modifier, parsing will fail with the error
'const' modifier can only appear on a type parameter of a function, method or class.
.https://biomejs.dev/playground/?code=dAB5AHAAZQAgAEYAbwBvACAAPQAgAHsACgAgACAAPABjAG8AbgBzAHQAIABUAD4AKAApADsACgAgACAAbQBlAHQAaABvAGQAPABjAG8AbgBzAHQAIABUAD4AKAApADsACgB9ADsA
Expected result
Successful parsing.
Code of Conduct
The text was updated successfully, but these errors were encountered: