traced bug in lexical scope; need to mask out the prefix

This commit is contained in:
Danny Yoo 2011-03-14 17:48:10 -04:00
parent 10aff9a7e1
commit 5bddb64554

View File

@ -484,6 +484,16 @@
(sum-integers 1 10)))
(list 3025 55))
;; Lexical scope bug: make sure that parameters shadow toplevels.
(test '(begin
(define x 42)
(define (f x)
(+ x 1))
(f 16))
17)
(test '(let () 5) 5)
(test '(let* ([x 3]