Simplify types for nan? and infinite?
This commit is contained in:
parent
e91cdad6b0
commit
69e613c831
|
@ -1946,17 +1946,9 @@
|
|||
(-> (Un -NonPosRat -NonPosFlonum -NonPosSingleFlonum -NonPosInexactReal -NonPosReal) -NonPosInt)
|
||||
(-> (Un -Rat -Flonum -SingleFlonum -InexactReal -Real) -Int))]
|
||||
|
||||
[nan? (from-cases
|
||||
(-> -Rat (-val #f))
|
||||
(-> (Un -FlonumNan -SingleFlonumNan) (-val #t))
|
||||
(-> -Real B))]
|
||||
[nan? (make-pred-ty (list -Real) B -InexactRealNan)]
|
||||
|
||||
[infinite? (from-cases
|
||||
(-> (Un -FlonumNan -FlonumNegZero -FlonumPosZero
|
||||
-SingleFlonumNan -SingleFlonumNegZero -SingleFlonumPosZero
|
||||
-Rat)
|
||||
(-val #f))
|
||||
(-> -Real B))]
|
||||
[infinite? (make-pred-ty (list -Real) B (Un -PosInfinity -NegInfinity))]
|
||||
|
||||
;; racket/fixnum
|
||||
[fx+ (fx+-type)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user