sva43750.scm 440 B

123456789101112131415161718
  1. ;; Test for Savannah bug #43750 "srfi-2 doesn't work inside r7rs library".
  2. (define-library (foo)
  3. (export foo1 foo2)
  4. (import (scheme base) (srfi 2))
  5. (begin
  6. (define (foo1)
  7. (and-let* () 1))
  8. (define (foo2 path)
  9. (and-let* ((something #t)) #t))))
  10. (import (scheme base)
  11. (scheme write)
  12. (foo))
  13. (format #t "foo1: ~w~%" (foo1))
  14. ;; Output: foo1: 1
  15. (format #t "foo2: ~w~%" (foo2 '(1 2 3)))
  16. ;; Output: foo2: #t