310 B
310 B
Add missing parentheses for decorator (#14393 by @fisker)
// Input
class Person {
@(myDecoratorArray[0])
greet() {}
}
// Prettier stable
class Person {
@myDecoratorArray[0]
greet() {}
}
// Prettier main
class Person {
@(myDecoratorArray[0])
greet() {}
}