Make "this" the implicit receiver!

This commit is contained in:
Bob Nystrom
2014-02-12 17:33:35 -08:00
parent 92971d1cfa
commit 756fe0d920
13 changed files with 217 additions and 51 deletions
@@ -0,0 +1,23 @@
class Foo {
getter {
IO.print("getter")
}
setter = value {
IO.print("setter")
}
method(a) {
IO.print("method")
}
}
class Bar is Foo {
test {
getter // expect: getter
setter = "value" // expect: setter
method("arg") // expect: method
}
}
(new Bar).test