mirror of
https://github.com/janet-lang/janet
synced 2025-10-16 16:27:40 +00:00
Fix #477
Make the walk function preserve bracket type, which should fix threading macro behavior when threading into bracketed expressions.
This commit is contained in:
@@ -61,4 +61,8 @@
|
||||
(assert-no-error "import macro 1" (macex '(import a :as b :fresh maybe)))
|
||||
(assert (deep= ~(,import* "a" :as "b" :fresh maybe) (macex '(import a :as b :fresh maybe))) "import macro 2")
|
||||
|
||||
# #477 walk preserving bracket type
|
||||
(assert (= :brackets (tuple/type (postwalk identity '[]))) "walk square brackets 1")
|
||||
(assert (= :brackets (tuple/type (walk identity '[]))) "walk square brackets 2")
|
||||
|
||||
(end-suite)
|
||||
|
Reference in New Issue
Block a user