Decorator parsing after field with ASI'd arrow function fails #45157
Labels
Bug
A bug in TypeScript
Has Repro
This issue has compiler-backed repros: https://aka.ms/ts-repros
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
Our RWC is showing some breaking changes that look like a bug in decorator parsing.
⏯ Playground Link
Workbench Repro
We used to parse this fine, but our RWC repo recently picked up that we started throwing a
Decorators must precede the name and all keywords of property declarations.
on the decorator, which is incorrect. The issue does not occur when the arrow function on the prior line is terminated with a semicolon.The text was updated successfully, but these errors were encountered: