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

Commit ea6c155

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Fix ComponentRef.transferSubscripts.
- Use InstNode.refEqual instead of referenceEq in transferSubscripts, since different nodes can point to the same component instance due to e.g. redeclare. Belonging to [master]: - #2968
1 parent a0d3cc1 commit ea6c155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/NFFrontEnd/NFComponentRef.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ public
478478
then
479479
dstCref;
480480

481-
case (CREF(), CREF()) guard referenceEq(srcCref.node, dstCref.node)
481+
case (CREF(), CREF()) guard InstNode.refEqual(srcCref.node, dstCref.node)
482482
algorithm
483483
cref := transferSubscripts(srcCref.restCref, dstCref.restCref);
484484
then

0 commit comments

Comments
 (0)