rlox/interpreter/tests/lox/super/no_superclass_method.lox
2024-09-01 19:15:55 +02:00

9 lines
159 B
Lox

class Base {}
class Derived < Base {
foo() {
super.doesNotExist(1); // expect runtime error: Undefined property 'doesNotExist'.
}
}
Derived().foo();