mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
Merge pull request #493 from alimpfard/patch-3
Add test for atoms "leaking" out of let* binds
This commit is contained in:
commit
daf5de3d86
@ -93,6 +93,12 @@
|
||||
(f)
|
||||
;=>9
|
||||
|
||||
;; Testing whether closures can retain atoms
|
||||
(def! g (let* (atm (atom 0)) (fn* () (deref atm))))
|
||||
(def! atm (atom 1))
|
||||
(g)
|
||||
;=>0
|
||||
|
||||
;>>> deferrable=True
|
||||
;;
|
||||
;; -------- Deferrable Functionality --------
|
||||
|
Loading…
Reference in New Issue
Block a user