Merge pullrequest #296
This commit is contained in:
commit
203dc4e6b2
@ -610,7 +610,7 @@ class HyASTCompiler(object):
|
||||
level)
|
||||
imports.update(f_imports)
|
||||
if splice:
|
||||
to_add = f_contents
|
||||
to_add = HyExpression([HySymbol("list"), f_contents])
|
||||
else:
|
||||
to_add = HyList([f_contents])
|
||||
|
||||
|
@ -82,3 +82,14 @@
|
||||
(setv opt (quote &optional))
|
||||
(assert (isinstance opt hy.HyLambdaListKeyword))
|
||||
(assert (= (str opt) "&optional")))
|
||||
|
||||
(defmacro doodle [&rest body]
|
||||
`(do ~@body))
|
||||
|
||||
(defn test-unquote-splice []
|
||||
"NATIVE: test unquote-splice does what's intended"
|
||||
(assert (=
|
||||
(doodle
|
||||
[1 2 3]
|
||||
[4 5 6])
|
||||
[4 5 6])))
|
||||
|
Loading…
x
Reference in New Issue
Block a user