diff --git a/compiler/src/prog8/ast/processing/AstChecker.kt b/compiler/src/prog8/ast/processing/AstChecker.kt index 0c9a1d852..19a2f05b2 100644 --- a/compiler/src/prog8/ast/processing/AstChecker.kt +++ b/compiler/src/prog8/ast/processing/AstChecker.kt @@ -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) }