1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
let Foo = class { constructor() { this.x = 5; } } let Bar = class extends Foo { constructor() { } } let bar = new Bar(); bar.x // ^ defined: 3