typed-racket/typed-racket-test/fail/gh112.rkt
2017-03-28 15:48:37 -05:00

9 lines
161 B
Racket

#lang typed/racket
(ann
(let ([x : Flonum -5.0])
(if (< x (ann +nan.0 Positive-Flonum))
1.0
x))
Positive-Flonum) ; -5 is *not* positive