2013-12-11 05:58:02 +00:00
|
|
|
class Foo {
|
2014-04-03 14:48:19 +00:00
|
|
|
toString { "Foo" }
|
2013-12-11 05:58:02 +00:00
|
|
|
}
|
|
|
|
|
|
2015-07-10 16:18:22 +00:00
|
|
|
// Classes get an argument-less "new()" by default.
|
|
|
|
|
var foo = Foo.new()
|
2014-01-05 20:27:12 +00:00
|
|
|
IO.print(foo is Foo) // expect: true
|
|
|
|
|
IO.print(foo.toString) // expect: Foo
|