justinethier/husk-scheme — Issue #52: Redefinition of a special form is not respected in nested scope
Author: justinethier
Created: 2011-11-07 15:47:48+00:00
State: open

The following should be an error, but instead it returns `2`:

(define if (lambda () 'test))
((lambda () (if 1 2 3)))

The trouble seems to be that the code is only inspecting the current environment, instead of examining parent environments when determining whether `if` has been redefined.