Files
wren/test/language/class/name_inside_body.wren
T

15 lines
183 B
Plaintext
Raw Normal View History

2013-12-20 12:42:11 -08:00
class Foo {
static sayName {
2014-04-09 07:48:35 -07:00
IO.print(Foo)
2013-12-20 12:42:11 -08:00
}
sayName {
2014-04-09 07:48:35 -07:00
IO.print(Foo)
2013-12-20 12:42:11 -08:00
}
2014-04-03 07:48:19 -07:00
static toString { "Foo!" }
2013-12-20 12:42:11 -08:00
}
Foo.sayName // expect: Foo!
(new Foo).sayName // expect: Foo!