Skip to content

Commit

Permalink
Fixed accidental change in PR #863 that led to an old state being use…
Browse files Browse the repository at this point in the history
…d after evaluating SeqContains args
  • Loading branch information
marcoeilers committed Sep 26, 2024
1 parent 768a8b6 commit 8700106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/rules/Evaluator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ object evaluator extends EvaluationRules {
/* Sequences */

case ast.SeqContains(e0, e1) => evalBinOp(s, e1, e0, SeqIn, pve, v)((s1, t, e1New, e0New, v1) =>
Q(s, t, e0New.map(e0p => ast.SeqContains(e0p, e1New.get)(e.pos, e.info, e.errT)), v1))
Q(s1, t, e0New.map(e0p => ast.SeqContains(e0p, e1New.get)(e.pos, e.info, e.errT)), v1))
/* Note the reversed order of the arguments! */

case ast.SeqIndex(e0, e1) =>
Expand Down

0 comments on commit 8700106

Please sign in to comment.