Skip to content

Commit

Permalink
add int to the numeric types
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Sep 23, 2023
1 parent 0da9884 commit 22d2b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/clojure/cljs/analyzer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -3611,7 +3611,7 @@
(cons (subs s 0 idx)
(js-star-seg (subs s (inc end)))))))))

(def NUMERIC_SET '#{any number long double})
(def NUMERIC_SET '#{any number int long double})

(defn numeric-type?
#?(:cljs {:tag boolean})
Expand All @@ -3630,6 +3630,7 @@
(when #?(:clj (set? t)
:cljs (impl/cljs-set? t))
(or (contains? t 'number)
(contains? t 'int)
(contains? t 'long)
(contains? t 'double)
(contains? t 'any)
Expand Down

0 comments on commit 22d2b6c

Please sign in to comment.