typed-racket/typed-racket-test/fail/poly-struct-parent.rkt
2014-12-16 10:07:25 -05:00

9 lines
145 B
Racket

#lang typed/racket
(define-struct: (A) Box ([value : A]))
(define-struct: (A) (Child-Box Box) ())
(ann (Box-value (Child-Box 'sym)) Nothing)