mirror of
https://github.com/irmen/prog8.git
synced 2024-09-10 09:54:32 +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)
|
val error = VerifyFunctionArgTypes.checkTypes(functionCall, functionCall.definingScope(), program)
|
||||||
if(error!=null)
|
if(error!=null)
|
||||||
errors.err(error, functionCall.args.first().position)
|
errors.err(error, functionCall.position)
|
||||||
|
|
||||||
super.visit(functionCall)
|
super.visit(functionCall)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user