Skip to content

Commit 2e59fce

Browse files
committed
do not restrict warnings to locals
1 parent d636ddd commit 2e59fce

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/clojure/cljs/analyzer.cljc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,9 +2634,7 @@
26342634
{:warn-type :object :form form :property prop}))
26352635
(when (not= 'js target-tag)
26362636
;; Cannot determine type of the target
2637-
(when (and (get-in env [:locals target])
2638-
(or (nil? target-tag)
2639-
('#{any} target-tag)))
2637+
(when (or (nil? target-tag) ('#{any} target-tag))
26402638
(warning :infer-warning env
26412639
{:warn-type :target :form form}))
26422640
;; Unresolveable property on existing extern

0 commit comments

Comments
 (0)