We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e3fc14 commit ee391d7Copy full SHA for ee391d7
1 file changed
src/main/clojure/cljs/analyzer.cljc
@@ -2998,14 +2998,15 @@
2998
(nil? t) true
2999
(= 'clj-nil t) true
3000
(js-tag? t) true ;; TODO: revisit
3001
+ (= 'any t) true
3002
+ (contains? array-types t) true
3003
:else
- (if (and (symbol? t) (contains? array-types t))
- true
3004
+ (boolean
3005
(when #?(:clj (set? t)
3006
:cljs (cljs-set? t))
3007
(or (contains? t 'any)
3008
(contains? t 'js)
- (boolean (some array-types t)))))))
3009
+ (some array-types t))))))
3010
3011
(defn analyze-js-star* [env jsform args form]
3012
(let [enve (assoc env :context :expr)
0 commit comments