Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/nested-class/super-property-in-key/input.js

raw symbols SCIP
1 "use strict";
2 class Hello {
3 toString() {
4 return 'hello';
5 }
6 }
7
8 class Outer extends Hello {
9 constructor() {
10 super();
11 class Inner {
12 [super.toString()] = 'hello';
13 }
14
15 return new Inner();
16 }
17 }
18
19 expect(new Outer().hello).toBe('hello');