2014-01-28 23:31:11 +00:00
|
|
|
class Foo {}
|
|
|
|
|
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(Foo.name) // expect: Foo
|
|
|
|
|
System.print(Foo.type.name) // expect: Foo metaclass
|
2014-01-28 23:31:11 +00:00
|
|
|
|
|
|
|
|
// Make sure the built-in classes have proper names too.
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(Object.name) // expect: Object
|
|
|
|
|
System.print(Bool.name) // expect: Bool
|
|
|
|
|
System.print(Class.name) // expect: Class
|
2015-05-01 14:55:28 +00:00
|
|
|
|
|
|
|
|
// And metaclass names.
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(Object.type.name) // expect: Object metaclass
|
|
|
|
|
System.print(Bool.type.name) // expect: Bool metaclass
|