fix error message for invalid number of arguments

This commit is contained in:
Irmen de Jong 2020-10-04 19:28:22 +02:00
parent eb86b1270d
commit 90b303fc03

View File

@ -896,7 +896,7 @@ internal class AstChecker(private val program: Program,
val error = VerifyFunctionArgTypes.checkTypes(functionCall, functionCall.definingScope(), program)
if(error!=null)
errors.err(error, functionCall.args.first().position)
errors.err(error, functionCall.position)
super.visit(functionCall)
}