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

12 lines
171 B
Lox

class Foo {
init(arg) {
print "Foo.init(" + arg + ")";
this.field = "init";
}
}
fun init() {
print "not initializer";
}
init(); // expect: not initializer