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