Closed
Description
In following code:
class MyBase {
getValue(): number { return 1; }
get value(): number { return 1; }
}
class MyDerived extends MyBase {
constructor() {
super();
const f1 = super.getValue();
const f2 = super.value;
}
}
var d = new MyDerived();
var f3 = d.value;
disallowing the line "const f2 = super.value;" to be valid is... plain stupid.
What is the scenario where this behavior is valid?