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 body-exp
;(list body-exp) ;(list body-exp)
(if (is-mutable? (car formals)) (if (is-mutable? (car formals))
(list
(list ;(ast:%make-lambda (list ;(ast:%make-lambda
; id ; id
(ast:make-lambda (ast:make-lambda
(list (car formals)) (list (car formals))
(wrap-mutable-formals id (cdr formals) body-exp has-cont) (wrap-mutable-formals id (cdr formals) body-exp has-cont)
has-cont) has-cont)
`(cell ,(car formals))) `(cell ,(car formals))))
(wrap-mutable-formals id (cdr formals) body-exp has-cont)))) (wrap-mutable-formals id (cdr formals) body-exp has-cont))))
(cond (cond