Skip to content

Commit

Permalink
Work around MetaModelica bug in Conversion (#7898)
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Sep 15, 2021
1 parent 8a54d62 commit d20546c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMCompiler/Compiler/Script/Conversion.mo
Expand Up @@ -2362,8 +2362,8 @@ protected
Absyn.Path old_path, new_path;
algorithm
(rename, name) := match imp
case Absyn.GroupImport.GROUP_IMPORT_NAME() then (imp.name, imp.name);
case Absyn.GroupImport.GROUP_IMPORT_RENAME() then (imp.rename, imp.name);
case Absyn.GroupImport.GROUP_IMPORT_NAME(name = name) then (name, name);
case Absyn.GroupImport.GROUP_IMPORT_RENAME(rename = rename, name = name) then (rename, name);
end match;

old_path := AbsynUtil.suffixPath(prefix, name);
Expand Down

0 comments on commit d20546c

Please sign in to comment.