Files
wren/test/nonlocal/use_in_method_before_definition.wren
T

15 lines
192 B
Plaintext
Raw Normal View History

2013-12-04 07:43:50 -08:00
class Foo {
method {
IO.print(Global)
2013-12-04 07:43:50 -08:00
}
static classMethod {
IO.print(Global)
2013-12-04 07:43:50 -08:00
}
}
2015-01-14 23:08:25 -08:00
var Global = "global"
(new Foo).method // expect: global
2013-12-04 07:43:50 -08:00
Foo.classMethod // expect: global