From ca4338bdc432427a8a25795a408e810b66d7e035 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 4 Oct 2019 12:55:33 +0200 Subject: [PATCH] :art: Allow thunks to be pure --- src/parse/check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 425aa35d..ca8d29f0 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -1346,8 +1346,8 @@ ANN static Value set_variadic(const Env env) { ANN m_bool check_fdef(const Env env, const Func_Def fdef) { if(fdef->base->args) CHECK_BB(check_func_args(env, fdef->base->args)) - else - UNSET_FLAG(fdef->base->func, pure); +// else +// UNSET_FLAG(fdef->base->func, pure); const Value variadic = GET_FLAG(fdef, variadic) ? set_variadic(env) : NULL; if(!GET_FLAG(fdef, builtin)) { if(fdef->d.code) -- 2.43.0