Make "this" the implicit receiver!
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class Foo {
|
||||
bar { return "getter" }
|
||||
|
||||
test {
|
||||
IO.print(bar) // expect: getter
|
||||
|
||||
{
|
||||
IO.print(bar) // expect: getter
|
||||
var bar = "local"
|
||||
IO.print(bar) // expect: local
|
||||
}
|
||||
|
||||
IO.print(bar) // expect: getter
|
||||
}
|
||||
}
|
||||
|
||||
(new Foo).test
|
||||
Reference in New Issue
Block a user