From: fennecdjay Date: Fri, 26 Aug 2022 18:44:22 +0000 (+0200) Subject: :bug: Fix simple typedef X-Git-Tag: nightly~264^2~24 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5a3007b25c71d494d2ec7f7155e6323c4a7cd989;p=gwion.git :bug: Fix simple typedef --- diff --git a/plug b/plug index 7bcb45ca..d78f5f09 160000 --- a/plug +++ b/plug @@ -1 +1 @@ -Subproject commit 7bcb45caaef9049760b56cfc5163b84b767e3ae6 +Subproject commit d78f5f098560aef8c3f069bf7d1eb4718a60db60 diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 99ef20d9..0d57cc4b 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -133,6 +133,7 @@ ANN static void typedef_simple(const Env env, const Type_Def tdef, nspc_addref((t->nspc = base->nspc)); t->flag = tdef->ext->flag; if (tdef->ext->array && !tdef->ext->array->exp) set_tflag(t, tflag_empty); + inherit(t); mk_class(env, tdef->type, tdef->pos); }