Open
Description
Discovered in conversation at #55892 (comment)
class C {
yadda = () => {};
}
class D extends C {
badda() {
super["yadda"]();
}
}
new D().badda()
Currently there is no error for this code; however, if you switched it to a property access, you'd get the error introduced at #54056.
class C {
yadda = () => {};
}
class D extends C {
badda() {
super.yadda(); // ❌ errors, as expected
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment