Add a first-order check for recursive-contract.
Closes PR 10946.
This commit is contained in:
parent
7a2ac10e0f
commit
40089cce15
|
@ -50,6 +50,10 @@ improve method arity mismatch contract violation error messages?
|
|||
(syntax
|
||||
(make-contract
|
||||
#:name '(recursive-contract arg)
|
||||
#:first-order
|
||||
(λ (val)
|
||||
(let ([ctc (coerce-contract 'recursive-contract arg)])
|
||||
(contract-first-order-passes? ctc val)))
|
||||
#:projection
|
||||
(λ (blame)
|
||||
(let ([ctc (coerce-contract 'recursive-contract arg)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user