Skip to content

Commit

Permalink
the previous bugfix was too quick, one case escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Jun 23, 2020
1 parent aff695c commit 1918dfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Desugarer(tracker: TransformationTracker) extends TlaExTransformation {
val nonSingletons = accessors.collect { case OperEx(TlaFunOper.tuple, lst @ _*) => lst.size > 1 }
if (nonSingletons.isEmpty) {
// only singleton tuples, construct the same EXCEPT, but with transformed fun and args
OperEx(TlaFunOper.except, transform(fun) +: args :_*)
OperEx(TlaFunOper.except, transform(fun) +: trArgs :_*)
} else {
// multiple accesses, e.g., ![i][j] = ...
expandExcept(transform(fun), accessors, newValues)
Expand Down

0 comments on commit 1918dfc

Please sign in to comment.