1
1
mirror of https://github.com/kanaka/mal.git synced 2024-08-16 17:20:23 +03:00

Test that macros use closures

This commit is contained in:
Nicolas Boulenguez 2019-06-30 23:37:16 +02:00
parent eacb46df65
commit a688720499

View File

@ -148,3 +148,13 @@ x
(let* [x (or nil "yes")] x)
;=>"yes"
;>>> soft=True
;; Test that macros use closures
(def! x 2)
(defmacro! a (fn* [] x))
(a)
;=>2
(let* (x 3) (a))
;=>2