Switch out? to from-typed? as it has the same meaning.
(cherry picked from commit 03e1ffda3e
)
This commit is contained in:
parent
52f892a5fd
commit
9411b01e3f
|
@ -116,7 +116,7 @@
|
|||
(define (contract-kind->keyword sym)
|
||||
(string->keyword (symbol->string sym)))
|
||||
|
||||
(define (type->contract ty fail #:out [out? #f] #:typed-side [from-typed? #t] #:kind [kind 'impersonator])
|
||||
(define (type->contract ty fail #:typed-side [from-typed? #t] #:kind [kind 'impersonator])
|
||||
(define vars (make-parameter '()))
|
||||
(define current-contract-kind (make-parameter flat-sym))
|
||||
(define (increase-current-contract-kind! kind)
|
||||
|
@ -205,7 +205,7 @@
|
|||
(and rst (t->c/neg rst))))]
|
||||
;; functions with filters or objects
|
||||
[(arr: dom (Values: (list (Result: rngs _ _) ...)) rst #f '())
|
||||
(if (and out? pos?)
|
||||
(if (and from-typed? pos?)
|
||||
(values (map t->c/neg dom)
|
||||
null
|
||||
(map t->c rngs)
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
[(dict-ref defs internal-id #f)
|
||||
=>
|
||||
(match-lambda
|
||||
[(def-binding _ (app (λ (ty) (type->contract ty (λ () #f) #:out #t)) (? values cnt)))
|
||||
[(def-binding _ (app (λ (ty) (type->contract ty (λ () #f))) (? values cnt)))
|
||||
(values
|
||||
(with-syntax* ([id internal-id]
|
||||
[cnt-id (cnt-id-introducer #'id)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user