Skip to content

Commit

Permalink
[NF] Fix base class lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jul 2, 2018
1 parent a34b659 commit e9a73b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFLookup.mo
Expand Up @@ -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) then
if name == InstNode.name(cur_scope) and InstNode.isClass(cur_scope) then
node := cur_scope;
return;
else
Expand Down

0 comments on commit e9a73b9

Please sign in to comment.