mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 07:32:10 +00:00
fix error message for invalid number of arguments
This commit is contained in:
parent
eb86b1270d
commit
90b303fc03
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user