Make "this" the implicit receiver!
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user