fixed a bug mentioned on the mailing list

svn: r15352
This commit is contained in:
Robby Findler 2009-07-01 14:02:55 +00:00
parent 0c547f694d
commit 2b5e836b74

View File

@ -2064,7 +2064,7 @@ improve method arity mismatch contract violation error messages?
(if (flat-contract? ctc)
(let ([content-pred? (flat-contract-predicate ctc)])
(build-flat-contract
`(listof ,(contract-name ctc))
`(type-name ,(contract-name ctc))
(lambda (x) (and (predicate? x) (testmap content-pred? x)))))
(let ([proj (contract-proc ctc)])
(make-proj-contract