Decorators on accessor private fields report SyntaxError #14547
Labels
lang:typescript
Issues affecting TypeScript-specific constructs (not general JS issues)
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 2.8.5
Playground link
Input:
Output:
Expected behavior:
No SyntaxError. Change the parser from "typescript" to "babel-ts" will make it work.
Prettier 2.8.4 works fine, seems 2.8.5 introduced this.
The text was updated successfully, but these errors were encountered: