Files
wren/test/language/variable/outside_method.wren
2015-09-01 08:16:04 -07:00

21 lines
267 B
Plaintext

var foo = "variable"
class Foo {
construct new() {}
foo { "method" }
method {
IO.print(foo)
}
static foo { "class method" }
static classMethod {
IO.print(foo)
}
}
Foo.new().method // expect: method
Foo.classMethod // expect: class method