Fix IsConcreteType for generic classes and add IsType predicate. (#1204)

* check that the return type is a type, add more implicit conversions

* update IsConcreteType for generic classes, add IsType predicate

* delete a comment

* trivial change

* move Witness wrt IsConcreteType and IsType

* added comments to tests

* update error line numbers
This commit is contained in:
Jeremy G. Siek
2022-04-25 16:25:22 -04:00
committed by GitHub
parent 0230ebdf38
commit adf1a85ee9
6 changed files with 174 additions and 16 deletions
+1 -3
View File
@@ -361,9 +361,7 @@ void Value::Print(llvm::raw_ostream& out) const {
out << "\"";
break;
case Value::Kind::TypeOfClassType:
out << "typeof("
<< cast<TypeOfClassType>(*this).class_type().declaration().name()
<< ")";
out << "typeof(" << cast<TypeOfClassType>(*this).class_type() << ")";
break;
case Value::Kind::TypeOfInterfaceType:
out << "typeof("