UserDefinedValueType: from simple name to canonical name.

This commit is contained in:
hrkrshnn
2021-09-15 12:56:29 +02:00
parent 0fa24c786b
commit de01822999
5 changed files with 28 additions and 25 deletions
+5
View File
@@ -341,6 +341,11 @@ Type const* UserDefinedValueTypeDefinition::type() const
return TypeProvider::typeType(TypeProvider::userDefinedValueType(*this));
}
TypeDeclarationAnnotation& UserDefinedValueTypeDefinition::annotation() const
{
return initAnnotation<TypeDeclarationAnnotation>();
}
Type const* StructDefinition::type() const
{
solAssert(annotation().recursive.has_value(), "Requested struct type before DeclarationTypeChecker.");