Added few tests.

This commit is contained in:
Matheus Aguiar
2022-09-28 11:32:03 +02:00
committed by wechman
parent 3bd047f188
commit 58d19a51c6
5 changed files with 92 additions and 1 deletions
+1 -1
View File
@@ -991,7 +991,7 @@ ASTPointer<UsingForDirective> Parser::parseUsingDirective()
if (!util::contains(overridable, operator_))
parserError(
1885_error,
("The operator " + string{TokenTraits::toString(operator_)} + " cannot be user-implemented. This is only possible for the folloing operators: ") +
("The operator " + string{TokenTraits::toString(operator_)} + " cannot be user-implemented. This is only possible for the following operators: ") +
util::joinHumanReadable(overridable | ranges::views::transform([](Token _t) { return string{TokenTraits::toString(_t)}; }))
);
operators.emplace_back(operator_);