2014-02-12 17:33:35 -08:00
|
|
|
class Foo {
|
|
|
|
|
static getter {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print("getter")
|
2014-02-12 17:33:35 -08:00
|
|
|
}
|
|
|
|
|
|
2014-04-08 17:54:37 -07:00
|
|
|
static setter=(value) {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print("setter")
|
2014-02-12 17:33:35 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static method(a) {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print("method")
|
2014-02-12 17:33:35 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static test {
|
|
|
|
|
getter // expect: getter
|
|
|
|
|
setter = "value" // expect: setter
|
|
|
|
|
method("arg") // expect: method
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Foo.test
|