Skip to content

Commit

Permalink
[NF] Handle derived classes in collectRecordParams.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2424
  • Loading branch information
perost authored and OpenModelica-Hudson committed May 9, 2018
1 parent 59a392a commit 63ed252
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Compiler/NFFrontEnd/NFRecord.mo
Expand Up @@ -178,6 +178,13 @@ algorithm
end for;
then
();

case Class.EXPANDED_DERIVED()
algorithm
(inputs, locals) := collectRecordParams(cls.baseClass);
then
();

else
algorithm
Error.assertion(false, getInstanceName() + " got non-instantiated function", sourceInfo());
Expand Down

0 comments on commit 63ed252

Please sign in to comment.