1
1
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:
Joel Martin 2020-01-16 08:52:27 -06:00 committed by GitHub
commit daf5de3d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 --------