Skip to content

Commit

Permalink
[NF] Fix Type.setArrayElementType.
Browse files Browse the repository at this point in the history
- Use liftArrayLeftList in setArrayElementType instead of just creating
  a new array type, to avoid creating nested array types when the
  element type itself is an array.
  • Loading branch information
perost committed Apr 21, 2020
1 parent 5fc329e commit a871306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/NFFrontEnd/NFType.mo
Expand Up @@ -544,7 +544,7 @@ public
output Type ty;
algorithm
ty := match arrayTy
case ARRAY() then ARRAY(elementTy, arrayTy.dimensions);
case ARRAY() then liftArrayLeftList(elementTy, arrayTy.dimensions);
else elementTy;
end match;
end setArrayElementType;
Expand Down

0 comments on commit a871306

Please sign in to comment.