blob: 29386be524ea4e2ed3141bb9e4ee9b9d8ef5d448 [file] [log] [blame]
class C {
constructor() {
this.foo = 'bar';
}
bar() {
return 41;
}
}
class D extends C {
constructor() {
super();
this.baz = 'bat';
}
bar() {
return super.bar() + 1;
}
}
function fn() {
var d = new D();
return d.bar();
}
assertEqual(fn(), 42);
test(fn);