Skip to content

Commit

Permalink
🎨 update
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed Mar 14, 2024
1 parent 9ae4970 commit 4e63ba0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/parse/check.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4e63ba0

Please sign in to comment.