1
0
forked from Mirror/wren
Files
wren/test/language/implicit_receiver/instance_methods.wren
Bob Nystrom 64eccdd9be Reorganize tests and benchmark scripts.
Mainly to get rid of one top level directory. But this will
also be useful when there are tests of the embedding API.
2015-03-14 12:45:56 -07:00

24 lines
349 B
Plaintext

class Foo {
getter {
IO.print("getter")
}
setter=(value) {
IO.print("setter")
}
method(a) {
IO.print("method")
}
test {
getter // expect: getter
setter = "value" // expect: setter
method("arg") // expect: method
}
}
(new Foo).test
// TODO: Need to decide how these interact with globals.