Skip to content

Commit

Permalink
[NF] Fix scope in Inst.instConnectorCref.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2945
  • Loading branch information
perost authored and OpenModelica-Hudson committed Feb 26, 2019
1 parent 1784812 commit a44d71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFInst.mo
Expand Up @@ -2765,7 +2765,7 @@ algorithm
(cref, found_scope) := Lookup.lookupConnector(absynCref, scope, info);
cref := instCrefSubscripts(cref, scope, info);

prefix := ComponentRef.fromNodeList(InstNode.scopeList(scope));
prefix := ComponentRef.fromNodeList(InstNode.scopeList(found_scope));
if not ComponentRef.isEmpty(prefix) then
cref := ComponentRef.append(cref, prefix);
end if;
Expand Down

0 comments on commit a44d71c

Please sign in to comment.