Improves error with suggestion to remove parantheses.

This commit is contained in:
Erik Kundt
2018-07-11 01:58:17 +02:00
parent 34a031609e
commit 7c7e154a7b
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ void TypeChecker::endVisit(InheritanceSpecifier const& _inheritance)
toString(arguments->size()) +
" arguments given but expected " +
toString(parameterTypes.size()) +
"."
". Remove parentheses if you do not want to provide arguments here."
);
}
for (size_t i = 0; i < std::min(arguments->size(), parameterTypes.size()); ++i)