Update 2271 and 5653 error messages to mention the errors are related to the binary operator.

This commit is contained in:
wechman
2022-09-28 13:08:32 +02:00
parent 697d279165
commit 27249cfa52
59 changed files with 163 additions and 163 deletions
+2 -2
View File
@@ -1815,7 +1815,7 @@ void TypeChecker::endVisit(BinaryOperation const& _operation)
m_errorReporter.typeError(
2271_error,
_operation.location(),
"Operator " +
"Binary operator " +
string(TokenTraits::toString(_operation.getOperator())) +
" not compatible with types " +
leftType->humanReadableName() +
@@ -1848,7 +1848,7 @@ void TypeChecker::endVisit(BinaryOperation const& _operation)
m_errorReporter.typeError(
5653_error,
_operation.location(),
"User defined operator " +
"User defined binary operator " +
string(TokenTraits::toString(_operation.getOperator())) +
" not compatible with types " +
leftType->humanReadableName() +