Skip to content

Commit

Permalink
[NF] Fix InstNode.scopeListClass for redeclares.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Jan 27, 2020
1 parent 119136b commit 6a5601b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo
Expand Up @@ -966,7 +966,7 @@ uniontype InstNode
else
accumScopes;
case InstNodeType.REDECLARED_CLASS()
then scopeList(parent(ty.parent), includeRoot, clsNode :: accumScopes);
then scopeList(ty.parent, includeRoot, getDerivedNode(clsNode) :: accumScopes);
else
algorithm
Error.assertion(false, getInstanceName() + " got unknown node type", sourceInfo());
Expand Down

1 comment on commit 6a5601b

@casella
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good progress, judging from the report

Please sign in to comment.