From b3758ffaa7db596322d84a51bf5acbbb406b6af2 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 13 Feb 2024 21:06:30 +0100 Subject: [PATCH] :art: no invalid context in the nspc anymore --- src/parse/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0