2015-07-10 09:18:22 -07:00
|
|
|
// TODO: Is this right? Shouldn't it resolve to this.local?
|
2013-12-04 07:43:50 -08:00
|
|
|
var foo = null
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
var local = "local"
|
|
|
|
|
class Foo {
|
2015-09-01 08:16:04 -07:00
|
|
|
construct new() {}
|
|
|
|
|
|
2013-12-04 07:43:50 -08:00
|
|
|
method {
|
2014-01-05 12:27:12 -08:00
|
|
|
IO.print(local)
|
2013-12-04 07:43:50 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-10 09:18:22 -07:00
|
|
|
foo = Foo.new()
|
2013-12-04 07:43:50 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foo.method // expect: local
|