Skip to content

Commit 796d1bb

Browse files
sjoelundclaude
andauthored
SimCodeUtil: call Dangerous.listReverseInPlace, not List.listReverseInPlace (#15702)
createTmpCrefExpsForComplexEqnSys called `List.listReverseInPlace`, but List does not export that name — it imports it from MetaModelica.Dangerous for its own use. Every other listReverseInPlace call site in this file (and the codebase) qualifies it as Dangerous.listReverseInPlace; this one is an inconsistency that only resolves under lenient import lookup. Use the Dangerous qualification (already imported at the top of the file) to match. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f2a4804 commit 796d1bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMCompiler/Compiler/SimCode/SimCodeUtil.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2870,7 +2870,7 @@ algorithm
28702870
(eqCrefs, newExp, lhsExpLstRes, rhsExpLstRes, lhsExpLstAss, rhsExpLstAss) := createTmpCrefExpsForComplexEqnSys_work(e, crPrefix, eqCrefs, callCrefs, lhsExpLstRes, rhsExpLstRes, lhsExpLstAss, rhsExpLstAss);
28712871
outExpList := newExp::outExpList;
28722872
end for;
2873-
outExpList := List.listReverseInPlace(outExpList);
2873+
outExpList := Dangerous.listReverseInPlace(outExpList);
28742874
end createTmpCrefExpsForComplexEqnSys;
28752875

28762876
protected function createTmpCrefExpsForComplexEqnSys_work

0 commit comments

Comments
 (0)