Improve introspection of Record and TypeType values

* TypeType values are now printable and yield the type name/alias
* Fix record_fields BIF to return correct type name for fields
* Allow TypeType values that point to a RecordType to be used with
  record_fields BIF
This commit is contained in:
Jon Siwek 2018-10-18 14:57:21 -05:00
parent 45526e6063
commit 1f450c0510
11 changed files with 427 additions and 346 deletions

View file

@ -500,6 +500,8 @@ void Val::ValDescribe(ODesc* d) const
AsFunc()->Describe(d);
else if ( type->Tag() == TYPE_FILE )
AsFile()->Describe(d);
else if ( type->Tag() == TYPE_TYPE )
d->Add(type->AsTypeType()->Type()->GetName());
else
d->Add("<no value description>");
break;