2013-12-10 21:58:02 -08:00
|
|
|
class Foo {
|
2014-04-03 07:48:19 -07:00
|
|
|
toString { "Foo" }
|
2013-12-10 21:58:02 -08:00
|
|
|
}
|
|
|
|
|
|
2013-12-20 12:42:11 -08:00
|
|
|
// Classes inherit the argument-less "new" one by default.
|
2013-12-19 07:02:27 -08:00
|
|
|
var foo = new Foo
|
2014-01-05 12:27:12 -08:00
|
|
|
IO.print(foo is Foo) // expect: true
|
|
|
|
|
IO.print(foo.toString) // expect: Foo
|