2013-12-20 20:42:11 +00:00
|
|
|
class Foo {
|
2015-09-01 15:16:04 +00:00
|
|
|
construct new() {}
|
|
|
|
|
|
2013-12-20 20:42:11 +00:00
|
|
|
static sayName {
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(Foo)
|
2013-12-20 20:42:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sayName {
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(Foo)
|
2013-12-20 20:42:11 +00:00
|
|
|
}
|
|
|
|
|
|
2014-04-03 14:48:19 +00:00
|
|
|
static toString { "Foo!" }
|
2013-12-20 20:42:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Foo.sayName // expect: Foo!
|
2015-07-10 16:18:22 +00:00
|
|
|
Foo.new().sayName // expect: Foo!
|