From 22d2b6c9a3635e8acdbac60187cb8af52236bc80 Mon Sep 17 00:00:00 2001 From: davidnolen Date: Sat, 23 Sep 2023 14:16:15 -0400 Subject: [PATCH] add int to the numeric types --- src/main/clojure/cljs/analyzer.cljc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/clojure/cljs/analyzer.cljc b/src/main/clojure/cljs/analyzer.cljc index 2bbc2a7ea..78becd1d6 100644 --- a/src/main/clojure/cljs/analyzer.cljc +++ b/src/main/clojure/cljs/analyzer.cljc @@ -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}) @@ -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)