Make classes know their name.

This commit is contained in:
Bob Nystrom
2014-01-28 15:31:11 -08:00
parent 9739bc7b30
commit 5c2cf641ae
9 changed files with 182 additions and 83 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
class Foo {}
IO.print((new Foo).toString) // expect: <object>
IO.print((new Foo).toString == "instance of Foo") // expect: true