Skip to content

Commit

Permalink
Fix Call.toArrayConstructor (#9916)
Browse files Browse the repository at this point in the history
- Don't fail on `fill`-calls that don't have exactly two arguments.
  • Loading branch information
perost committed Dec 10, 2022
1 parent 0424833 commit 295b3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/NFFrontEnd/NFCall.mo
Expand Up @@ -2045,7 +2045,7 @@ public
Option<Expression> step;

case TYPED_CALL() then match AbsynUtil.pathString(Function.nameConsiderBuiltin(iCall.fn))
case "fill" algorithm
case "fill" guard listLength(iCall.arguments) == 2 algorithm
{body, stop} := iCall.arguments;
start := Expression.INTEGER(1);
step := NONE();
Expand Down

0 comments on commit 295b3b0

Please sign in to comment.