From: fennecdjay Date: Sat, 19 Nov 2022 14:40:17 +0000 (+0100) Subject: :art: empty array types are abstract X-Git-Tag: nightly~207^2~75 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f6ca9114087f99e39d6bea7b6e3d56a9e4877447;p=gwion.git :art: empty array types are abstract --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 6161f172..26f94601 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -134,7 +134,10 @@ ANN static void typedef_simple(const Env env, const Type_Def tdef, t->nspc->parent = base->nspc; } t->flag = tdef->ext->flag; - if (tdef->ext->array && !tdef->ext->array->exp) set_tflag(t, tflag_empty); + if (tdef->ext->array && !tdef->ext->array->exp) { + set_tflag(t, tflag_empty); + SET_FLAG(t, abstract); + } } ANN static m_bool typedef_complex(const Env env, const Type_Def tdef,