Skip to content

Commit

Permalink
[NF] Fix instantiation of derived classes.
Browse files Browse the repository at this point in the history
- Fix Typing.typeClass so that it correctly handles the case where the
  root class is a short class definition.

Belonging to [master]:
  - OpenModelica/OMCompiler#2603
  - OpenModelica/OpenModelica-testsuite#1014
  • Loading branch information
perost authored and OpenModelica-Hudson committed Aug 13, 2018
1 parent 363af9f commit 01f7068
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/NFFrontEnd/NFTyping.mo
Expand Up @@ -179,6 +179,7 @@ function typeClass
input InstNode cls;
input String name;
algorithm
typeClassType(cls, NFBinding.EMPTY_BINDING, ExpOrigin.CLASS);
typeComponents(cls, ExpOrigin.CLASS);
execStat("NFTyping.typeComponents(" + name + ")");
typeBindings(cls, cls, ExpOrigin.CLASS);
Expand Down

0 comments on commit 01f7068

Please sign in to comment.