test that you can use flat-named-contract with a contract
that already has a name (and get the new name) closes PR 8050 -- this PR was fixed at some point in the past; this commit just adds a test case
This commit is contained in:
parent
d7eddb91ef
commit
bfa6f374ff
|
@ -11977,6 +11977,13 @@ so that propagation occurs.
|
||||||
(test-name 'char? (flat-contract char?))
|
(test-name 'char? (flat-contract char?))
|
||||||
(test-name 'any/c any/c)
|
(test-name 'any/c any/c)
|
||||||
|
|
||||||
|
(test-name 'mumble (let ([frotz/c integer?]
|
||||||
|
[bazzle/c boolean?])
|
||||||
|
(flat-named-contract 'mumble
|
||||||
|
(and/c frotz/c
|
||||||
|
(not/c bazzle/c)))))
|
||||||
|
|
||||||
|
|
||||||
(test-name '(-> integer? integer?) (-> integer? integer?))
|
(test-name '(-> integer? integer?) (-> integer? integer?))
|
||||||
(test-name '(-> integer? any) (-> integer? any))
|
(test-name '(-> integer? any) (-> integer? any))
|
||||||
(test-name '(-> integer? (values boolean? char?)) (-> integer? (values boolean? char?)))
|
(test-name '(-> integer? (values boolean? char?)) (-> integer? (values boolean? char?)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user