From: fennecdjay Date: Thu, 14 Mar 2024 12:15:08 +0000 (+0100) Subject: :art: update X-Git-Tag: nightly~31 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=4e63ba04f83800d1f519c0590bf0cbd73e261128;p=gwion.git :art: update --- 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; }