Skip to content

Commit

Permalink
[NF] Fix NFFunction.mapExpParameter.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2783
  • Loading branch information
perost authored and OpenModelica-Hudson committed Nov 9, 2018
1 parent a2b203f commit 7905e37
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Compiler/NFFrontEnd/NFFunction.mo
Expand Up @@ -1558,12 +1558,17 @@ uniontype Function
InstNode.updateComponent(comp, node);
end if;

if not Component.isTypeAttribute(comp) and
not Type.isEnumeration(Component.getType(comp)) then
cls := InstNode.getClass(Component.classInstance(comp));
ClassTree.applyComponents(Class.classTree(cls),
function mapExpParameter(mapFn = mapFn));
end if;
() := match comp
case Component.TYPED_COMPONENT()
algorithm
cls := InstNode.getClass(comp.classInst);
ClassTree.applyComponents(Class.classTree(cls),
function mapExpParameter(mapFn = mapFn));
then
();

else ();
end match;
end if;
end mapExpParameter;

Expand Down

0 comments on commit 7905e37

Please sign in to comment.