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

20 lines
444 B
Racket

#lang racket/base
;; Test for PR 14829. Make sure the type is not printed
;; for expressions that return Bottom.
(require rackunit
racket/sandbox)
(define out (open-output-string))
(define tr-eval
(parameterize ([sandbox-output out])
(call-with-trusted-sandbox-configuration
(λ () (make-evaluator 'typed/racket)))))
(with-handlers ([exn? values])
(tr-eval '(error "foo")))
(check-equal? "" (get-output-string out))