454 B
454 B
Fix typecast of superclass in class declarations (#12222 & #12226 by @duailibe)
This was a combination of two separate bugs: moving the comments before the superclass and adding multiple parenthesis around the superclass.
// Input
class Foo extends /** @type {Type} */ (Bar) {}
// Prettier stable
class Foo /** @type {Type} */ extends ((Bar)) {}
// Prettier main
class Foo extends /** @type {Type} */ (Bar) {}