From 8cfa8619f924eb9b44cc6ccb54822074fb6c3fa8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 22 Dec 2020 00:41:19 +0100 Subject: [PATCH] :art: Be more permissive --- src/parse/scan1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse/scan1.c b/src/parse/scan1.c index 0789d086..be1bb5d7 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -86,8 +86,8 @@ ANN static m_bool scan1_decl(const Env env, const Exp_Decl* decl) { CHECK_BB(scan1_exp(env, var->array->exp)) t = array_type(env, decl->type, var->array->depth); } else if(GET_FLAG(t, abstract) && !GET_FLAG(decl->td, late)) { - ERR_B(var->pos, "Type '%s' is abstract, use late") - // SET_FLAG(decl->td, late); + // ERR_B(var->pos, "Type '%s' is abstract, use late", t->name) + SET_FLAG(decl->td, late); } const Value v = var->value = var->value ?: new_value(env->gwion->mp, t, s_name(var->xid)); // rewrite logic -- 2.43.0