typed-racket/typed-racket-test/succeed/mutable-struct-pred.rkt
2014-12-16 10:07:25 -05:00

11 lines
135 B
Racket

#lang typed/scheme
(define-struct: x ([y : Any]) #:mutable)
(define: the-x : Any (make-x 1))
(if (x? the-x)
(x-y the-x)
0)