From 9d7f3fd2e3c10b2e7ec0e8809b72eb513df13105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=96stlund?= Date: Mon, 19 Mar 2018 11:38:40 +0100 Subject: [PATCH] [NF] Fix for redeclare with final issue. Belonging to [master]: - OpenModelica/OMCompiler#2289 - OpenModelica/OpenModelica-testsuite#881 --- Compiler/NFFrontEnd/NFModifier.mo | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Compiler/NFFrontEnd/NFModifier.mo b/Compiler/NFFrontEnd/NFModifier.mo index 0fad5cfa042..f214e98f9bd 100644 --- a/Compiler/NFFrontEnd/NFModifier.mo +++ b/Compiler/NFFrontEnd/NFModifier.mo @@ -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;