From f1d79894e64c4a275dce3cae35fc994f558b545e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 15 Dec 2020 01:19:17 +0100 Subject: [PATCH] :bug: Auto 'latification' of abstract types --- src/parse/scan1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); -- 2.43.0