From 80c148cb39c702de7e036b32ee9d738469ce5e60 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 27 Feb 2024 21:37:10 +0100 Subject: [PATCH] :art: fix lil func_def issue --- src/parse/check.c | 1 - src/parse/scan2.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 28c7daaf..240868c3 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -1958,7 +1958,6 @@ ANN static bool check_ctor(const Env env, const Func func) { } ANN bool _check_func_def(const Env env, const Func_Def f) { - if (tmpl_base(f->base->tmpl) && fbflag(f->base, fbflag_op)) return true; const Func func = f->base->func; const Func_Def fdef = func->def; if(fflag(func, fflag_valid))return true; diff --git a/src/parse/scan2.c b/src/parse/scan2.c index a6ad567e..b0a2cbf7 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -524,8 +524,6 @@ static inline int is_cpy(const Func_Def fdef) { } ANN bool _scan2_func_def(const Env env, const Func_Def fdef) { - if (tmpl_base(fdef->base->tmpl) && fbflag(fdef->base, fbflag_op)) - return true; if(is_new(fdef)) { if(!env->class_def) ERR_B(fdef->base->tag.loc, _("{G+}new{0} operator must be set inside {C+}class{0}")); -- 2.43.0