Files
Nuake-custom/Nuake/Vendors/wren/test/language/variable/outside_method.wren
2025-01-30 22:41:17 -05:00

21 lines
275 B
Plaintext

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