Files
wren/test/language/closure/closed_closure_in_method.wren

16 lines
209 B
Plaintext
Raw Normal View History

// TODO: Is this right? Shouldn't it resolve to this.local?
var foo = null
{
var local = "local"
class Foo {
method {
IO.print(local)
}
}
foo = Foo.new()
}
foo.method // expect: local