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.
1 parent c437042 commit ef66637Copy full SHA for ef66637
src/clj/cljs/analyzer.clj
@@ -1707,12 +1707,16 @@
1707
(when-not (every?
1708
(fn [t]
1709
(or (nil? t)
1710
- (and (symbol? t) ('#{any number} t))
+ (and (symbol? t) ('#{any number long double} t))
1711
;; TODO: type inference is not strong enough to detect that
1712
;; when functions like first won't return nil, so variadic
1713
;; numeric functions like cljs.core/< would produce a spurious
1714
;; warning without this - David
1715
- (and (set? t) (or (contains? t 'number) (contains? t 'any)))))
+ (and (set? t)
1716
+ (or (contains? t 'number)
1717
+ (contains? t 'long)
1718
+ (contains? t 'double)
1719
+ (contains? t 'any)))))
1720
types)
1721
(warning :invalid-arithmetic env
1722
{:js-op (-> form meta :js-op)
0 commit comments