mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update message of TypeError 5172
This commit is contained in:
@@ -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."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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_) +
|
||||
"."
|
||||
|
||||
Reference in New Issue
Block a user