From 5a3007b25c71d494d2ec7f7155e6323c4a7cd989 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 26 Aug 2022 20:44:22 +0200 Subject: [PATCH] :bug: Fix simple typedef --- plug | 2 +- src/parse/scan0.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.43.0