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:
parent
eacb46df65
commit
a688720499
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user