From: fennecdjay Date: Tue, 12 Nov 2019 13:44:14 +0000 (+0100) Subject: :art: Simplify Exp_Decl X-Git-Tag: nightly~2105 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=76dad8929b17202449a648e85c650c7a69c3b9b9;p=gwion.git :art: Simplify Exp_Decl --- diff --git a/ast b/ast index a665041d..71015548 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit a665041d509e08858bfe7932dd753fd99b0fa105 +Subproject commit 710155485a0128816f915ad328572e0b88b85278 diff --git a/src/parse/scan1.c b/src/parse/scan1.c index d3491b62..5dde97f6 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -56,7 +56,6 @@ ANN static Type scan1_exp_decl_type(const Env env, Exp_Decl* decl) { ERR_O(exp_self(decl)->pos, _("can't use private type %s"), t->name) if(GET_FLAG(t, protect) && (!env->class_def || isa(t, env->class_def) < 0)) ERR_O(exp_self(decl)->pos, _("can't use protected type %s"), t->name) - decl->base = t->e->def; return decl->type = t; }