Show named argument name in error

This commit is contained in:
Alex Beregszaszi
2018-06-06 15:59:27 +01:00
parent 59b35fa5b2
commit 0f572159ec
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1918,7 +1918,7 @@ bool TypeChecker::visit(FunctionCall const& _functionCall)
if (!found)
m_errorReporter.typeError(
_functionCall.location(),
"Named argument does not match function declaration."
"Named argument \"" + *argumentNames[i] + "\" does not match function declaration."
);
}
}