From f6ca9114087f99e39d6bea7b6e3d56a9e4877447 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 19 Nov 2022 15:40:17 +0100 Subject: [PATCH] :art: empty array types are abstract --- src/parse/scan0.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- 2.43.0