Debian Codegraph @

packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys--to-es2015/methods-with-same-key/exec.js

raw symbols SCIP
1 expect(() => {
2 let elements = [];
3
4 function dec(val, context) {
5 elements.push({ val, context });
6 }
7
8 class Foo {
9 @dec
10 a() {
11 return 1;
12 }
13
14 @dec
15 a() {
16 return 2;
17 }
18 }
19 }).toThrow("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: a")