From: Jérémie Astor Date: Tue, 15 Dec 2020 00:19:17 +0000 (+0100) Subject: :bug: Auto 'latification' of abstract types X-Git-Tag: nightly~1105^2~18 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f1d79894e64c4a275dce3cae35fc994f558b545e;p=gwion.git :bug: Auto 'latification' of abstract types --- diff --git a/src/parse/scan1.c b/src/parse/scan1.c index 13567187..f6a0734b 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -87,10 +87,10 @@ ANN static m_bool scan1_decl(const Env env, const Exp_Decl* decl) { t = array_type(env, decl->type, var->array->depth); } else if(GET_FLAG(t, abstract) && !GET_FLAG(decl->td, late)) { if(!(t == env->class_def && env->scope->depth)) { - if(decl->td->xid == insert_symbol("auto")) +// if(decl->td->xid == insert_symbol("auto")) SET_FLAG(decl->td, late); - else - ERR_B(exp_self(decl)->pos, _("Type '%s' is abstract, declare as ref. (use @)"), t->name) +// else +// ERR_B(exp_self(decl)->pos, _("Type '%s' is abstract, declare as ref. (use @)"), t->name) } } const Value v = var->value = var->value ?: new_value(env->gwion->mp, t, s_name(var->xid));