From fdbee2642b776b2ff323efebb75dcffd358736ec Mon Sep 17 00:00:00 2001 From: Johannes Mey <johannes.mey@tu-dresden.de> Date: Mon, 6 Jan 2020 14:06:53 +0100 Subject: [PATCH] fix bug in inheritance linking --- scope4m/src/main/jastadd/ModelicaToScopeTree.jrag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scope4m/src/main/jastadd/ModelicaToScopeTree.jrag b/scope4m/src/main/jastadd/ModelicaToScopeTree.jrag index 7c8954a..4643764 100644 --- a/scope4m/src/main/jastadd/ModelicaToScopeTree.jrag +++ b/scope4m/src/main/jastadd/ModelicaToScopeTree.jrag @@ -1,6 +1,6 @@ aspect ModelicaToScopeTree { /** a relational nta attribute to compute the scope tree */ - syn lazy ScopeTree SourceRoot.scopeTree() { + syn lazy ScopeTree SourceRoot.scopeTree() { ScopeTree tree = (ScopeTree) scope(); // add all top-level classes @@ -32,6 +32,7 @@ aspect ModelicaToScopeTree { addInheritedScope(superClass.asScope()); } } + super.updateInheritance(); } /** a relational nta collection attribute to compute scopes */ -- GitLab