forked from Mirror/wren
19 lines
245 B
Plaintext
19 lines
245 B
Plaintext
|
|
var foo = "variable"
|
||
|
|
|
||
|
|
class Foo {
|
||
|
|
foo { "method" }
|
||
|
|
|
||
|
|
method {
|
||
|
|
IO.print(foo)
|
||
|
|
}
|
||
|
|
|
||
|
|
static foo { "class method" }
|
||
|
|
|
||
|
|
static classMethod {
|
||
|
|
IO.print(foo)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
(new Foo).method // expect: method
|
||
|
|
Foo.classMethod // expect: class method
|