Debian Codegraph @

packages/babel-plugin-transform-classes/test/fixtures/spec/computed-methods/exec.js

raw
1 const sym = Symbol();
2
3 class Foo {
4 [sym] () {
5 return 1;
6 }
7 }
8
9 class Bar extends Foo {
10 [sym] () {
11 return super[sym]() + 2;
12 }
13 }
14
15 let i = new Bar();
16
17 expect(i[sym]()).toBe(3);