optimizing invocations

This commit is contained in:
mycroft committed 2024-09-01 11:50:54 +02:00
1 parent 0bc5f495b9
commit 22ed27a931
6 files changed
+67 -2

No files matched your search

+17
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();