1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 05:50:26 +02:00

* lib.scm (exception:used-before-define): New.

* tests/syntax.test ("letrec"): Use it.
This commit is contained in:
Marius Vollmer 2004-08-23 10:48:51 +00:00
parent 3ece39d651
commit 0ac467456b
2 changed files with 4 additions and 1 deletions

View file

@ -25,6 +25,7 @@
exception:bad-variable
exception:missing-expression
exception:out-of-range exception:unbound-var
exception:used-before-defined
exception:wrong-num-args exception:wrong-type-arg
exception:numerical-overflow
@ -243,6 +244,8 @@
(cons 'out-of-range "^Argument .*out of range"))
(define exception:unbound-var
(cons 'unbound-variable "^Unbound variable"))
(define exception:used-before-defined
(cons 'unbound-variable "^Variable used before given a value"))
(define exception:wrong-num-args
(cons 'wrong-number-of-args "^Wrong number of arguments"))
(define exception:wrong-type-arg

View file

@ -430,7 +430,7 @@
(with-test-prefix "bindings"
(pass-if-exception "initial bindings are undefined"
exception:unbound-var
exception:used-before-defined
(let ((x 1))
(letrec ((x 1) (y x)) y))))