-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse error on type assertion with contextual keyword in parentheses (override as Type) #44466
Comments
The reason is |
@ShuiRuTian From my comment at #44996 (comment)
|
@DanielRosenwasser interesting, if so , I want to have a try to fix this issue. |
Go for it, though I don't know what precisely to do here. Maybe when parsing a parameter for anything other than a |
In |
Bug Report
🔎 Search Terms
typecast, parentheses, override
🕗 Version & Regression Information
Started to see the issue after updating from TypeScript 4.2 to 4.3, initially noticing this when running prettier after updating it prettier/prettier#11018
It also is happening in current 'Nightly' version in the playground.
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
Code results in a syntax error.
However it works fine when renaming variable
override
to something else.🙂 Expected behavior
Code above should work
The text was updated successfully, but these errors were encountered: