From 76dad8929b17202449a648e85c650c7a69c3b9b9 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 12 Nov 2019 14:44:14 +0100 Subject: [PATCH] :art: Simplify Exp_Decl --- ast | 2 +- src/parse/scan1.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.43.0