forked from Mirror/wren
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
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
|