Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions typed-racket-lib/typed-racket/base-env/base-env-numeric.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@
(define flreal-part-type (lambda () (-FloatComplex . -> . -Flonum)))
(define flimag-part-type (lambda () (-FloatComplex . -> . -Flonum)))
(define flrandom-type (lambda () (-Pseudo-Random-Generator . -> . -Flonum)))
(define flbit-field-type (lambda () (-Flonum -Byte -Byte . -> . -Nat)))

;; There's a repetitive pattern in the types of each comparison operator.
;; As explained below, this is because props don't do intersections.
Expand Down Expand Up @@ -2010,6 +2011,7 @@
[flreal-part (flreal-part-type)]
[flimag-part (flimag-part-type)]
[flrandom (flrandom-type)]
[flbit-field (flbit-field-type)]

[unsafe-flabs (flabs-type 'flonum)]
[unsafe-fl+ (fl+-type 'flonum)]
Expand All @@ -2023,6 +2025,7 @@
[unsafe-fl< (fl<-type 'flonum)]
[unsafe-flmin (flmin-type 'flonum)]
[unsafe-flmax (flmax-type 'flonum)]
[unsafe-flbit-field (flbit-field-type)]

;These are currently the same binding as the safe versions
;and so are not needed. If this changes they should be
Expand Down