Fix the type of abs on negative zeros.
This commit is contained in:
parent
0892e23892
commit
0498f548c1
|
@ -652,7 +652,8 @@
|
|||
|
||||
(define abs-cases ; used both for abs and magnitude
|
||||
(list
|
||||
(-NonNegReal . -> . -NonNegReal : -true-filter : (-arg-path 0))
|
||||
;; abs is not the identity on negative zeros.
|
||||
((Un -Zero -PosReal) . -> . (Un -Zero -PosReal) : -true-filter : (-arg-path 0))
|
||||
;; abs may not be closed on fixnums. (abs min-fixnum) is not a fixnum
|
||||
((Un -PosInt -NegInt) . -> . -PosInt)
|
||||
(-Int . -> . -Nat)
|
||||
|
|
|
@ -3638,6 +3638,7 @@
|
|||
[tc-e/t ((inst values Any) "a") -String]
|
||||
[tc-e ((inst second Any Any Any) (list "a" "b")) -String]
|
||||
[tc-e/t (abs 4) -PosByte]
|
||||
[tc-e (abs -0.0) -NonNegFlonum]
|
||||
|
||||
;; PR 125: Tests for flonum predicate typechecking
|
||||
[tc-e/t
|
||||
|
|
Loading…
Reference in New Issue
Block a user