Fix type of rational?.

original commit: b1fbbafd91fdd64496647f0108ece7e6fed9947e
This commit is contained in:
Vincent St-Amour 2012-08-02 11:31:56 -04:00
parent 5bb888e47e
commit 5c4b0895dd

View File

@ -703,7 +703,8 @@
[double-flonum? (make-pred-ty -Flonum)]
[inexact-real? (make-pred-ty -InexactReal)]
[complex? (make-pred-ty N)]
[rational? (make-pred-ty -Real)]
;; `rational?' includes all Reals, except infinities and NaN.
[rational? (asym-pred Univ B (-FS (-filter -Real 0) (-not-filter -Rat 0)))]
[exact? (asym-pred N B (-FS -top (-not-filter -Rat 0)))]
[inexact? (asym-pred N B (-FS -top (-not-filter (Un -InexactReal -FloatComplex) 0)))]
[fixnum? (make-pred-ty -Fixnum)]