Require Procedure contract to be a chaperone
Closes PR 13746
This commit is contained in:
parent
8a685777ff
commit
7ea19bf951
|
@ -148,7 +148,9 @@
|
|||
(loop t 'both structs-seen kind))
|
||||
(define (t->c/fun f #:method [method? #f])
|
||||
(match f
|
||||
[(Function: (list (top-arr:))) #'(case->)]
|
||||
[(Function: (list (top-arr:)))
|
||||
(set-chaperone!)
|
||||
#'(case->)]
|
||||
[(Function: arrs)
|
||||
(set-chaperone!)
|
||||
;; Try to generate a single `->*' contract if possible.
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#;
|
||||
(exn:pred #rx"Procedure could not be converted to a predicate")
|
||||
#lang typed/racket
|
||||
|
||||
(define-predicate A? Procedure)
|
||||
|
Loading…
Reference in New Issue
Block a user