schemify: fix problem with inlining

Recently added support for inlining functions with a "rest" arg
exposed a problem in constructing an inlining environment.
This commit is contained in:
Matthew Flatt 2018-03-23 16:52:12 -06:00
parent e0a8f475a7
commit f048f23ade

View File

@ -99,7 +99,7 @@
(loop (wrap-cdr args)))]
[else
(define u (unwrap args))
(list (cons u (gensym u)))])))
(cons (cons u (gensym u)) base-env)])))
(values (let loop ([args args] [env env])
(cond
[(wrap-null? args) '()]