Fix the using directive implicit conversion error message.

This commit is contained in:
wechman
2022-09-28 13:09:16 +02:00
parent 257b2f2d0e
commit 8bb8373436
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -3910,7 +3910,7 @@ void TypeChecker::endVisit(UsingForDirective const& _usingFor)
3100_error,
path->location(),
"The function \"" + joinHumanReadable(path->path(), ".") + "\" "+
"cannot be bound to the type \"" + _usingFor.typeName()->annotation().type->humanReadableName() +
"cannot be bound to the type \"" + _usingFor.typeName()->annotation().type->canonicalName() +
"\" because the type cannot be implicitly converted to the first argument" +
" of the function (\"" + functionType->selfType()->humanReadableName() + "\")" +
(