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

Commit

Permalink
[NF] Fix typing loop.
Browse files Browse the repository at this point in the history
- Avoid a loop when a component's type references the component,
  by typing the type's bindings after updating the component node.

Belonging to [master]:
  - #2299
  - OpenModelica/OpenModelica-testsuite#888
  • Loading branch information
perost authored and OpenModelica-Hudson committed Mar 21, 2018
1 parent e30046d commit 748b75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/NFFrontEnd/NFTyping.mo
Expand Up @@ -634,8 +634,6 @@ algorithm
c.binding := binding;
end if;

typeBindings(c.classInst, component, origin);

if Binding.isBound(c.condition) then
c.condition := typeComponentCondition(c.condition, origin);
dirty := true;
Expand All @@ -645,6 +643,8 @@ algorithm
if dirty then
InstNode.updateComponent(c, node);
end if;

typeBindings(c.classInst, component, origin);
then
();

Expand Down

0 comments on commit 748b75a

Please sign in to comment.