2014-02-12 17:33:35 -08:00
|
|
|
class Foo {
|
2015-09-01 08:16:04 -07:00
|
|
|
construct new() {}
|
|
|
|
|
|
2014-02-12 17:33:35 -08:00
|
|
|
getter {
|
|
|
|
|
IO.print("getter")
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-08 17:54:37 -07:00
|
|
|
setter=(value) {
|
2014-02-12 17:33:35 -08:00
|
|
|
IO.print("setter")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
method(a) {
|
|
|
|
|
IO.print("method")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
test {
|
|
|
|
|
getter // expect: getter
|
|
|
|
|
setter = "value" // expect: setter
|
|
|
|
|
method("arg") // expect: method
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-10 09:18:22 -07:00
|
|
|
Foo.new().test
|
2014-02-12 17:33:35 -08:00
|
|
|
|
|
|
|
|
// TODO: Need to decide how these interact with globals.
|