fixed a bug in my earlier bugfix (also PR 10221)

svn: r14662
This commit is contained in:
Robby Findler 2009-04-29 21:08:01 +00:00
parent 224f9fa3a7
commit 6d08558ab7
2 changed files with 6 additions and 6 deletions

View File

@ -837,10 +837,9 @@ v4 todo:
(define (->d-proj ->d-stct)
(let* ([opt-count (length (->d-optional-dom-ctcs ->d-stct))]
[mandatory-count (length (->d-mandatory-dom-ctcs ->d-stct))]
[non-kwd-ctc-count (+ mandatory-count
opt-count
(if (->d-mtd? ->d-stct) 1 0))]
[mandatory-count (+ (length (->d-mandatory-dom-ctcs ->d-stct))
(if (->d-mtd? ->d-stct) 1 0))]
[non-kwd-ctc-count (+ mandatory-count opt-count)]
[arity
(cond
[(->d-rest-ctc ->d-stct)
@ -988,7 +987,7 @@ v4 todo:
arity
(->d-mandatory-keywords ->d-stct)
(->d-optional-keywords ->d-stct))))))))
(->d-keywords ->d-stct))))))))
;; invoke-dep-ctc : (...? -> ctc) (or/c #f (listof tst)) val pos-blame neg-blame src-info orig-src -> tst
(define (invoke-dep-ctc dep-ctc dep-args val pos-blame neg-blame src-info orig-str)

View File

@ -1345,7 +1345,8 @@
'((contract (->d ([x number?]) () #:rest rst number? any)
(λ (x . rst) (values 4 5))
'pos
'neg)))
'neg)
#f))
(test/pos-blame
'->d-arity1