From 4bbc910dfa9fd328c3397db2a09830a5c29c0fa3 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 26 Feb 2024 21:57:30 +0100 Subject: [PATCH] :fire: simplify scan2_class_def --- src/parse/scan2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse/scan2.c b/src/parse/scan2.c index b69d6a31..a6ad567e 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -604,10 +604,10 @@ ANN bool scan2_class_def(const Env env, const Class_Def cdef) { if (c->body) { const m_uint scope = env_push_type(env, t); const Tmpl *tmpl = cdef->base.tmpl; - if(tmpl && tmpl->call && tmpl->call != (TmplArg_List)1 && tmpl->list) + if(tmpl) template_push_types(env, tmpl); const bool ret = scan2_class_body(env, c); - if(tmpl && tmpl->call && tmpl->call != (TmplArg_List)1 && tmpl->list) + if(tmpl) nspc_pop_type(env->gwion->mp, env->curr); env_pop(env, scope); return ret; -- 2.43.0