We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
or-in-for/and-to-filter-clause
1 parent 4c8bf08 commit ffa0284Copy full SHA for ffa0284
typed-racket-lib/typed-racket/optimizer/float.rkt
@@ -142,10 +142,10 @@
142
;; (Note: could allow for more args, if not next to each other, but
143
;; probably not worth the trouble (most ops have 2 args anyway))
144
(and (subtypeof? this-syntax -Flonum)
145
- (for/and ([a (in-syntax #'(fs ...))]
146
- #:unless (subtypeof? a -Flonum))
+ (for/and ([a (in-syntax #'(fs ...))])
147
;; flonum or provably non-zero
148
- (subtypeof? a (Un -PosReal -NegReal)))
+ (or (subtypeof? a -Flonum)
+ (subtypeof? a (Un -PosReal -NegReal))))
149
(>= 1
150
(for/sum ([a (in-syntax #'(fs ...))]
151
#:when (not (subtypeof? a -Flonum)))
0 commit comments