Update message of TypeError 5172

This commit is contained in:
wechman
2022-09-28 13:06:25 +02:00
parent c6ad99c3b1
commit e001f8346b
15 changed files with 33 additions and 17 deletions
@@ -190,7 +190,7 @@ void DeclarationTypeChecker::endVisit(UserDefinedTypeName const& _typeName)
m_errorReporter.fatalTypeError(
5172_error,
_typeName.location(),
"Name has to refer to a struct, enum or contract."
"Name has to refer to a user-defined value type, struct, enum or contract."
);
}
}
+1 -1
View File
@@ -3982,7 +3982,7 @@ void TypeChecker::endVisit(UsingForDirective const& _usingFor)
path->location(),
"The function \"" + joinHumanReadable(path->path(), ".") + "\" "+
"needs to return exactly one value of type " +
functionType->parameterTypesIncludingSelf().front()->humanReadableName() +
functionType->parameterTypesIncludingSelf().front()->canonicalName() +
" to be used for the operator " +
TokenTraits::friendlyName(*operator_) +
"."