From 5be9adba81a25045a41d747cca4e6acf78a76dfd Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 19 Jul 2022 12:04:41 +0200 Subject: [PATCH] :bug: Add a check for effect list --- 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 b2097a0a..baf35d0d 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -2067,7 +2067,7 @@ ANN m_bool check_ast(const Env env, Ast *ast) { Section * section = mp_vector_at(a, Section, i); CHECK_BB(check_section(env, section)); } - check_unhandled(env); + if(vector_size(&env->scope->effects)) check_unhandled(env); if(env->context->extend) check_extend(env, env->context->extend); return GW_OK; } -- 2.43.0