I'm working with the new Class Public Field Declarations available in Chrome 72 and I came across this genuinely strange behavior:
class Extended {
property = 5;
}
class Extending extends Extended {
get property() {
return false;
}
}
const extending = new Extending();
console.log(extending.property);
//logs 5
I would be surprised if this is the expected result since it renders the getter on the extending class inaccessible. Is this a bug?