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

16 lines
319 B
Racket

#lang typed/racket/no-check
;; Test for PR 14463. Check that require/typed with #:opaque works
;; in no-check mode
(module untyped racket
(provide f thing?)
(define (f x) x)
(define (thing? x) #t))
(require/typed 'untyped
[#:opaque Thing thing?]
[f (Thing -> Thing)])
(thing? 3)