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
const override = {};
const b = (override as any);
🙁 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