You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uzmoi opened this issue
Jan 21, 2024
· 0 comments
· Fixed by #1625
Labels
A-ParserArea: parserS-Bug-confirmedStatus: report has been confirmed as a valid bugS-Help-wantedStatus: you're familiar with the code base and want to help the project
CLI:
Version: 1.5.1
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v20.10.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "npm/10.2.5"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: false
VCS disabled: false
Workspace:
Open Documents: 0
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..
A-ParserArea: parserS-Bug-confirmedStatus: report has been confirmed as a valid bugS-Help-wantedStatus: 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: