Handle contract generation for recursive class types.
This commit is contained in:
parent
7e7ebffdd4
commit
6945c5bfb1
|
@ -299,6 +299,8 @@
|
||||||
#,(contract-kind->keyword (current-contract-kind)))])
|
#,(contract-kind->keyword (current-contract-kind)))])
|
||||||
n*))))]
|
n*))))]
|
||||||
[(Value: #f) #'false/c]
|
[(Value: #f) #'false/c]
|
||||||
|
[(Instance: (? Mu? t))
|
||||||
|
(t->c (make-Instance (resolve-once t)))]
|
||||||
[(Instance: (Class: _ _ (list (list name fcn) ...)))
|
[(Instance: (Class: _ _ (list (list name fcn) ...)))
|
||||||
(set-impersonator!)
|
(set-impersonator!)
|
||||||
(with-syntax ([(fcn-cnts ...) (for/list ([f fcn]) (t->c/fun f #:method #t))]
|
(with-syntax ([(fcn-cnts ...) (for/list ([f fcn]) (t->c/fun f #:method #t))]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user