diff --git a/scope4m/src/main/jastadd/ModelicaToScopeTree.jrag b/scope4m/src/main/jastadd/ModelicaToScopeTree.jrag index 7c8954aca3882b62b4cbe3d4d7ee8c68d490eda6..4643764e63cb4575a69cabef026f56bf22523b15 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 */