Update error message of 4907_error

This commit is contained in:
wechman
2022-09-28 13:09:16 +02:00
parent cdbc06419f
commit ea5309a9e6
21 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -1758,7 +1758,7 @@ bool TypeChecker::visit(UnaryOperation const& _operation)
else
{
string description =
"Unary operator " + string(TokenTraits::toString(op)) + " cannot be applied to type " + subExprType->humanReadableName() + "." +
"Built-in unary operator "s + TokenTraits::toString(op) + " cannot be applied to type " + subExprType->humanReadableName() + "." +
(!builtinResult.message().empty() ? " " + builtinResult.message() : "") +
(!userDefinedOperatorResult.message().empty() ? " " + userDefinedOperatorResult.message() : "");
if (modifying)