Functions should be able to mutate mutable fields in their surrounding deftype (just like inner classes do in Java).
Filed as bug, because the loop special form expands into a fn form sometimes:
Comment made by: importer
donmullen said: Updated each run to [_] for new syntax.
Now gives exception listed.
The patch for CLJ-1226 makes this work:
If there's interest, I could provide a patch that converts closed over mutable field access by generated fns (for loop/try) into field access on closed over "this", i.e. val -> (.val this)
Related tickets: CLJ-1075 CLJ-1023
CLJ-701 could probably make the loop case working