2019-03-13 00:11:16 +01:00

16 lines
264 B
JavaScript

class A {
static get a() { return 1 }
}
class B extends A {
static get b() { return 2 }
static #getA() { return super.a }
static #getB() { return this.b }
static extract() {
return [this.#getA, this.#getB];
}
}
const [getA, getB] = B.extract();