2015-01-13 21:36:42 -08:00
|
|
|
var foo = "variable"
|
|
|
|
|
|
|
|
|
|
class Foo {
|
2015-09-01 08:16:04 -07:00
|
|
|
construct new() {}
|
|
|
|
|
|
2015-01-13 21:36:42 -08:00
|
|
|
foo { "method" }
|
|
|
|
|
|
|
|
|
|
method {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(foo)
|
2015-01-13 21:36:42 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static foo { "class method" }
|
|
|
|
|
|
|
|
|
|
static classMethod {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(foo)
|
2015-01-13 21:36:42 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-10 09:18:22 -07:00
|
|
|
Foo.new().method // expect: method
|
2015-01-13 21:36:42 -08:00
|
|
|
Foo.classMethod // expect: class method
|