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

Commit

Permalink
[NF] Fix path when creating record expressions.
Browse files Browse the repository at this point in the history
- Remove the record constructor name from the path when creating
  record expressions, and only keep the name of the record itself.

Belonging to [master]:
  - #2327
  - OpenModelica/OpenModelica-testsuite#905
  • Loading branch information
perost authored and OpenModelica-Hudson committed Mar 28, 2018
1 parent 1792dd7 commit 72d39d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFCall.mo
Expand Up @@ -2325,7 +2325,7 @@ protected
algorithm
exp := match call
case TYPED_CALL()
then Expression.RECORD(Function.name(call.fn), ty, call.arguments);
then Expression.RECORD(Absyn.stripLast(Function.name(call.fn)), ty, call.arguments);
end match;
end toRecordExpression;
end Call;
Expand Down

0 comments on commit 72d39d6

Please sign in to comment.