few minor improvements to the code generated by the contract library

svn: r7339

original commit: 33311ab2114f97ab5e039daa5ce7599dc89d82e4
This commit is contained in:
Robby Findler 2007-09-14 21:27:53 +00:00
parent f35a9d26c2
commit be84b7685f

View File

@ -5151,6 +5151,20 @@ so that propagation occurs.
[struct s ([a number?]
[b symbol?])]))))
(test/spec-passed
'provide/contract21
'(begin
(eval '(module provide/contract21a mzscheme
(require (lib "contract.ss"))
(provide/contract [f integer?])
(define f 1)))
(eval '(module provide/contract21b mzscheme
(require-for-syntax provide/contract21a)
(define-syntax (unit-body stx)
f f
#'1)))))
(contract-error-test
#'(begin
(eval '(module pce1-bug mzscheme