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

Commit

Permalink
[NF] Fix prefixing issue.
Browse files Browse the repository at this point in the history
- Handle prefixing of bindings coming from a parent of an instance.

Belonging to [master]:
  - #2456
  - OpenModelica/OpenModelica-testsuite#958
  • Loading branch information
perost authored and OpenModelica-Hudson committed May 22, 2018
1 parent 2d96bc2 commit 71fb0a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Compiler/NFFrontEnd/NFComponentRef.mo
Expand Up @@ -449,12 +449,15 @@ public
then
dstCref;

case (CREF(), CREF())
case (CREF(), CREF()) guard referenceEq(srcCref.node, dstCref.node)
algorithm
cref := transferSubscripts(srcCref.restCref, dstCref.restCref);
then
CREF(dstCref.node, srcCref.subscripts, dstCref.ty, dstCref.origin, cref);

case (CREF(), CREF())
then transferSubscripts(srcCref.restCref, dstCref);

else
algorithm
Error.assertion(false, getInstanceName() + " failed", sourceInfo());
Expand Down

0 comments on commit 71fb0a7

Please sign in to comment.