Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Mar 24, 2023
1 parent 01ac815 commit 3eb8420
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions changelog_unreleased/typescript/14584.md
@@ -0,0 +1,31 @@
#### Allow multiple decorators on same getter/setter (#14584 by @fisker)

<!-- prettier-ignore -->
```ts
// Input
class A {
@decorator()
get foo () {}

@decorator()
set foo (value) {}
}

// Prettier stable
SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3)
3 | get foo () {}
4 |
> 5 | @decorator()
| ^^^^^^^^^^^^
6 | set foo (value) {}
7 | }

// Prettier main
class A {
@decorator()
get foo() {}

@decorator()
set foo(value) {}
}
```

0 comments on commit 3eb8420

Please sign in to comment.