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

Commit

Permalink
[NF] Fix for redeclare with final issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Mar 19, 2018
1 parent 1efe7ca commit 9d7f3fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Compiler/NFFrontEnd/NFModifier.mo
Expand Up @@ -195,15 +195,13 @@ public

case SCode.REDECL(element = elem)
algorithm
(elem, smod) := stripSCodeMod(elem);
node := InstNode.new(elem, scope);

if InstNode.isClass(node) then
Inst.partialInstClass(node);
end if;
then
REDECLARE(mod.finalPrefix, mod.eachPrefix, node,
create(smod, name, modScope, level, scope));
REDECLARE(mod.finalPrefix, mod.eachPrefix, node, NOMOD());

end match;
end create;
Expand Down

0 comments on commit 9d7f3fd

Please sign in to comment.