Conditionalize use of contract.
This commit is contained in:
parent
e07ce478af
commit
8a608ed840
|
@ -696,7 +696,7 @@
|
||||||
;; just return a boolean result
|
;; just return a boolean result
|
||||||
(define infer
|
(define infer
|
||||||
(let ()
|
(let ()
|
||||||
(define/contract (infer X Y S T R [expected #f])
|
(define/cond-contract (infer X Y S T R [expected #f])
|
||||||
(((listof symbol?) (listof symbol?) (listof Type/c) (listof Type/c) Type?) ((or/c #f Type?)) . ->* . (or/c boolean? substitution/c))
|
(((listof symbol?) (listof symbol?) (listof Type/c) (listof Type/c) Type?) ((or/c #f Type?)) . ->* . (or/c boolean? substitution/c))
|
||||||
(with-handlers ([exn:infer? (lambda _ #f)])
|
(with-handlers ([exn:infer? (lambda _ #f)])
|
||||||
(let* ([expected-cset (if expected
|
(let* ([expected-cset (if expected
|
||||||
|
|
Loading…
Reference in New Issue
Block a user