mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
17 lines
228 B
Plaintext
17 lines
228 B
Plaintext
|
|
var variable = "module"
|
||
|
|
|
||
|
|
class Foo {
|
||
|
|
construct new() {}
|
||
|
|
|
||
|
|
method {
|
||
|
|
System.print(variable)
|
||
|
|
}
|
||
|
|
|
||
|
|
static classMethod {
|
||
|
|
System.print(variable)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
Foo.new().method // expect: module
|
||
|
|
Foo.classMethod // expect: module
|