Skip to content

Commit ee391d7

Browse files
author
dnolen
committed
fix issue with 'any
1 parent 5e3fc14 commit ee391d7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/clojure/cljs/analyzer.cljc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2998,14 +2998,15 @@
29982998
(nil? t) true
29992999
(= 'clj-nil t) true
30003000
(js-tag? t) true ;; TODO: revisit
3001+
(= 'any t) true
3002+
(contains? array-types t) true
30013003
:else
3002-
(if (and (symbol? t) (contains? array-types t))
3003-
true
3004+
(boolean
30043005
(when #?(:clj (set? t)
30053006
:cljs (cljs-set? t))
30063007
(or (contains? t 'any)
30073008
(contains? t 'js)
3008-
(boolean (some array-types t)))))))
3009+
(some array-types t))))))
30093010

30103011
(defn analyze-js-star* [env jsform args form]
30113012
(let [enve (assoc env :context :expr)

0 commit comments

Comments
 (0)