Skip to content

Commit

Permalink
fix #12075. don't recursively macroexpand into module expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jul 21, 2015
1 parent 65cb3a0 commit d087b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3340,8 +3340,7 @@ So far only the second case can actually occur.
((eq? (car e) 'quote)
;; backquote is essentially a built-in macro at the moment
(julia-expand-macros (julia-bq-expand (cadr e) 0)))
((eq? (car e) 'inert)
e)
((eq? (car e) 'inert) e)
((eq? (car e) 'macrocall)
;; expand macro
(let ((form (apply invoke-julia-macro (cadr e) (cddr e))))
Expand All @@ -3355,6 +3354,7 @@ So far only the second case can actually occur.
(rename-symbolic-labels
(julia-expand-macros
(resolve-expansion-vars form m))))))
((eq? (car e) 'module) e)
(else
(map julia-expand-macros e))))

Expand Down

0 comments on commit d087b83

Please sign in to comment.