From 4e63ba04f83800d1f519c0590bf0cbd73e261128 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 14 Mar 2024 13:15:08 +0100 Subject: [PATCH] :art: update --- src/parse/check.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index de438031..56945468 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -675,11 +675,13 @@ ANN static bool check_func_args(const Env env, Arg_List args) { Arg *arg = mp_vector_at(args, Arg, i); const Var_Decl *decl = &arg->var.vd; const Value v = decl->value; - if(decl->tag.sym && !can_define(env, decl->tag.sym, decl->tag.loc)) { - POISON(ok, env); - continue; + if(decl->tag.sym) { + if(!can_define(env, decl->tag.sym, decl->tag.loc)) { + POISON(ok, env); + continue; + } + valid_value(env, decl->tag.sym, v); } - valid_value(env, decl->tag.sym, v); } return ok; } -- 2.43.0