Fix for AST output for wrap-mutables

This commit is contained in:
Justin Ethier 2018-09-05 17:45:02 -04:00
parent cc1bfea6f0
commit 9d606f9d43

View file

@ -734,13 +734,14 @@
body-exp
;(list body-exp)
(if (is-mutable? (car formals))
(list ;(ast:%make-lambda
; id
(ast:make-lambda
(list (car formals))
(wrap-mutable-formals id (cdr formals) body-exp has-cont)
has-cont)
`(cell ,(car formals)))
(list
(list ;(ast:%make-lambda
; id
(ast:make-lambda
(list (car formals))
(wrap-mutable-formals id (cdr formals) body-exp has-cont)
has-cont)
`(cell ,(car formals))))
(wrap-mutable-formals id (cdr formals) body-exp has-cont))))
(cond