optimizing invocations

This commit is contained in:
2024-09-01 11:11:29 +02:00
parent 0bc5f495b9
commit 22ed27a931
6 changed files with 67 additions and 2 deletions

View File

@ -0,0 +1,17 @@
class Oops {
init() {
fun f() {
print "not a method";
return "returned value from f";
}
this.field = f;
}
blah() {
return "returned value from blah";
}
}
var oops = Oops();
print oops.field();
print oops.blah();