Skip to content

Commit

Permalink
Mark projected bindings as mutated
Browse files Browse the repository at this point in the history
  • Loading branch information
tjammer committed Nov 13, 2024
1 parent de7875b commit d098c6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/typing/exclusivity.ml
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,8 @@ let rec check_tree env mut ((bpart, special) as bdata) tree hist =
| Umove when is_part -> collect_array_move b
| Umove ->
raise (Error (tree.loc, "Cannot move out of array with this index"))
| Uset | Uread | Umut -> ());
| Uset | Umut -> mark_mutated b
| Uread -> ());
let tree =
{ tree with expr = App { callee; args = [ (ar, snd arr); idx ] } }
in
Expand Down

0 comments on commit d098c6b

Please sign in to comment.