Skip to content

Commit 24ea0be

Browse files
committed
Test macro loading from IIFE can accept no return
1 parent 579ff41 commit 24ea0be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test.ls

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,12 @@ test "macro constructor called with no arguments is an error" ->
729729
-> esl "(macro)"
730730
..`@throws` Error
731731

732+
test "macro constructor loading from IIFE can load nothing" ->
733+
esl """
734+
(macro ((function ())))
735+
"""
736+
..`@equals` ""
737+
732738
test "macro can return multiple statements with `multi`" ->
733739
esl "(macro declareTwo (function () (return ((. this multi) '(var x 0) '(var y 1)))))
734740
(declareTwo)"

0 commit comments

Comments
 (0)