2013-12-20 12:42:11 -08:00
|
|
|
class Foo {
|
2015-09-01 08:16:04 -07:00
|
|
|
construct new() {}
|
|
|
|
|
|
2013-12-20 12:42:11 -08:00
|
|
|
static sayName {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.print(Foo)
|
2013-12-20 12:42:11 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sayName {
|
2015-09-15 07:46:09 -07:00
|
|
|
System.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!
|
2015-07-10 09:18:22 -07:00
|
|
|
Foo.new().sayName // expect: Foo!
|