Clean up the root of the class/metaclass hierarchy.

This commit is contained in:
Bob Nystrom
2013-12-21 20:44:37 -08:00
parent 6c3aa85228
commit 2ec01c558f
4 changed files with 105 additions and 49 deletions
+10
View File
@@ -0,0 +1,10 @@
class Foo {}
// A class is a class.
IO.write(Foo is Class) // expect: true
// It's metatype is also a class.
IO.write(Foo.type is Class) // expect: true
// The metatype's metatype is Class.
IO.write(Foo.type.type == Class) // expect: true