mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
21 lines
267 B
Plaintext
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
|