// Input
/* @flow */
@decorator4
class Foo {
@decorator1
method1() {}
@decorator2
@decorator3
method2() {}
}
// Prettier stable
SyntaxError: Unexpected token `@`, expected the token `class` (3:1)
1 | /* @flow */
2 |
> 3 | @decorator4
| ^
4 | class Foo {
5 | @decorator1
6 | method1() {}
// Prettier master
/* @flow */
@decorator4
class Foo {
@decorator1
method1() {}
@decorator2
@decorator3
method2() {}
}