From 0287ce775fd3cf772854e6178c130e7656c352e2 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 17 Jul 2019 19:40:02 +0200 Subject: [PATCH] :art: Simpl check fix --- src/parse/check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parse/check.c b/src/parse/check.c index 22f2f2c4..ee81952f 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -172,7 +172,7 @@ ANN static Value check_non_res_value(const Env env, const Exp_Primary* primary) if(env->class_def) { const Value v = value ? value : find_value(env->class_def, primary->d.var); if(v) { - if(v->owner) + if(v->owner_class) CHECK_BO(not_from_owner_class(env, env->class_def, v, exp_self(primary)->pos)) if(env->func && GET_FLAG(env->func->def, static) && GET_FLAG(v, member)) ERR_O(exp_self(primary)->pos, @@ -462,6 +462,7 @@ static Func ensure_tmpl(const Env env, const Func_Def fdef, const Exp_Call *exp) } return NULL; } + ANN static m_bool check_func_args(const Env env, Arg_List arg_list) { do { const Var_Decl decl = arg_list->var_decl; -- 2.43.0