Skip to content

Commit 6a5601b

Browse files
committed
[NF] Fix InstNode.scopeListClass for redeclares.
1 parent 119136b commit 6a5601b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ uniontype InstNode
966966
else
967967
accumScopes;
968968
case InstNodeType.REDECLARED_CLASS()
969-
then scopeList(parent(ty.parent), includeRoot, clsNode :: accumScopes);
969+
then scopeList(ty.parent, includeRoot, getDerivedNode(clsNode) :: accumScopes);
970970
else
971971
algorithm
972972
Error.assertion(false, getInstanceName() + " got unknown node type", sourceInfo());

0 commit comments

Comments
 (0)