]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix simple typedef
authorfennecdjay <fennecdjay@gmail.com>
Fri, 26 Aug 2022 18:44:22 +0000 (20:44 +0200)
committerfennecdjay <fennecdjay@gmail.com>
Fri, 26 Aug 2022 18:44:22 +0000 (20:44 +0200)
plug
src/parse/scan0.c

diff --git a/plug b/plug
index 7bcb45caaef9049760b56cfc5163b84b767e3ae6..d78f5f098560aef8c3f069bf7d1eb4718a60db60 160000 (submodule)
--- a/plug
+++ b/plug
@@ -1 +1 @@
-Subproject commit 7bcb45caaef9049760b56cfc5163b84b767e3ae6
+Subproject commit d78f5f098560aef8c3f069bf7d1eb4718a60db60
index 99ef20d9e09994767d08bcf56cce55bbafe5cb18..0d57cc4bba0d07badf01a29e4936890afae120bc 100644 (file)
@@ -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);
 }