mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 01:30:27 +02:00
Fix primitive-eval to return #<unspecified> for definitions
* module/ice-9/eval.scm (primitive-eval): Return #<unspecified> for definitions. Previously the variable object was returned. * test-suite/tests/eval.test (evaluator): Add test. * NEWS: Add news entry.
This commit is contained in:
parent
2f3e436411
commit
adb8054c6d
3 changed files with 7 additions and 1 deletions
|
@ -75,6 +75,10 @@
|
|||
|
||||
(with-test-prefix "evaluator"
|
||||
|
||||
(pass-if "definitions return #<unspecified>"
|
||||
(eq? (primitive-eval '(define test-var 'foo))
|
||||
(if #f #f)))
|
||||
|
||||
(with-test-prefix "symbol lookup"
|
||||
|
||||
(with-test-prefix "top level"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue