Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
[NF] Better fix for base class lookup issue.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2548
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jul 2, 2018
1 parent e9a73b9 commit 6ec2d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/NFFrontEnd/NFLookup.mo
Expand Up @@ -359,7 +359,7 @@ function lookupSimpleName
input InstNode scope;
output InstNode node;
protected
InstNode cur_scope = scope;
InstNode cur_scope = InstNode.classScope(scope);
algorithm
// Look for the name in each enclosing scope, until it's either found or we
// run out of scopes.
Expand All @@ -370,7 +370,7 @@ algorithm
else
// TODO: Handle encapsulated scopes.
// If the scope has the same name as we're looking for we can just return it.
if name == InstNode.name(cur_scope) and InstNode.isClass(cur_scope) then
if name == InstNode.name(cur_scope) then
node := cur_scope;
return;
else
Expand Down

0 comments on commit 6ec2d31

Please sign in to comment.