optimizing invocations
This commit is contained in:
1 parent
0bc5f495b9
commit
22ed27a931
6 files changed
+67
-2
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user