18 lines
286 B
Plaintext
18 lines
286 B
Plaintext
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();
|