From a06f6a7216b0f2f1c4f64e06f599551f0fb5ac34 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 3 Jul 2021 12:53:06 -0700 Subject: compiler: inline lambda: fix : from apply-list case * stdlib/compiler.tl (lambda-apply-transform): When processing optional argument from apply-list, push an entry into check-opts, so the fixup code is generated for it. New test cases pass now. --- stdlib/compiler.tl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/compiler.tl b/stdlib/compiler.tl index 23c86ce8..8e053061 100644 --- a/stdlib/compiler.tl +++ b/stdlib/compiler.tl @@ -2072,7 +2072,8 @@ t)))) (t (add ^(,var-sym (if ,al-val (pop ,al-val) - ,init-form))))))) + ,init-form))))) + (push (list* var-sym have-sym init-form) check-opts))) (if pars.rest (add ^(,pars.rest ,al-val)) (add ^(,ign-2 (if ,al-val -- cgit v1.2.3