Closed
Description
Our RWC is showing some breaking changes that look like a bug in decorator parsing.
⏯ Playground Link
// @strict: true
// @experimentalDecorators: true
// @filename: index.ts
declare var someDecorator: any;
export default class Whatever {
private _someField = () => {
return 0;
}
@someDecorator
getThing() {
return 0;
}
}
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.