Files
wren/test/language/module_variable/outside_method.wren

21 lines
268 B
Plaintext
Raw Permalink Normal View History

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