Closed dxkyy closed 1 week ago
I just finished 12.7, and this code:
class Foo { init() { print this; } } var foo = Foo();
produces this result:
Foo instance Foo instance
This happens with every type of function in a class. E.g:
class Test { hello() { print "hello!!"; } } Test().hello();
->
hello!! hello!!
What can I do to fix this? / What did I do wrong?
Oops, I just forgot to delete interpreter.executeBlock(declaration.body, environment); before return null; in LuxFunction.call()
interpreter.executeBlock(declaration.body, environment);
return null;
LuxFunction.call()
I just finished 12.7, and this code:
produces this result:
This happens with every type of function in a class. E.g:
->
What can I do to fix this? / What did I do wrong?