add (and/c vector? any-wrap/c) -like contracts

for VectorTop, HashTableTop, etc. going from typed to untyped
This commit is contained in:
Alex Knauth 2016-06-25 21:51:15 -04:00 committed by AlexKnauth
parent 9bda1bfcbc
commit d7670250d4

View File

@ -346,7 +346,7 @@
(define (only-untyped sc)
(if (from-typed? typed-side)
(fail #:reason "contract generation not supported for this type")
(and/sc sc any-wrap/sc)
sc))
(cached-match sc-cache type typed-side
;; Applications of implicit recursive type aliases