diff options
| -rw-r--r-- | pez.c | 2 | ||||
| -rw-r--r-- | test.pez | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -2192,7 +2192,7 @@ endscope(Comp *cm) } else { if (!l->has_k) { --cm->fenv.nvars; - if (l->mutable) { + if (l->mutable && l->scope > 0) { TRY(compop(cm, Oclose) && compbyte(cm, l->index)); } } @@ -1,8 +1,9 @@ @print: {[x] printf["%a\n", x]} @Box: {[value] + @test = 7 #[{value}, - {[new] value = new}] + {[new] printf["test: %a\n", test] value = new}] } |