From: fennecdjay Date: Tue, 13 Feb 2024 20:06:30 +0000 (+0100) Subject: :art: no invalid context in the nspc anymore X-Git-Tag: nightly~80 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b3758ffaa7db596322d84a51bf5acbbb406b6af2;p=gwion.git :art: no invalid context in the nspc anymore --- diff --git a/src/parse/check.c b/src/parse/check.c index 35982546..348accfb 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -400,7 +400,7 @@ ANN static Type prim_owned(const Env env, const Symbol *data) { ANN static Type prim_id_non_res(const Env env, const Symbol *data) { const Symbol sym = *data; const Value v = check_non_res_value(env, data); - if (!v || !vflag(v, vflag_valid) || (v->from->ctx && v->from->ctx->error)) { + if (!safe_vflag(v, vflag_valid)) { const m_str name = s_name(*data); if (!isalpha(*name) && *name != '_') { prim_self(data)->value = env->gwion->type[et_op]->info->value;