fixed a bug in my earlier bugfix (also PR 10221)
svn: r14662
This commit is contained in:
parent
224f9fa3a7
commit
6d08558ab7
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user