Skip to content

Commit f43fabc

Browse files
author
dnolen
committed
CLJS-1940: Undeclared var warning when invoking a protocol method on a js interop form
Now that we propagate js type hint we to exclude when doing type resolution for protocol fn invokes
1 parent fa7c692 commit f43fabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/clojure/cljs/compiler.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@
940940
(or (= protocol tag)
941941
;; ignore new type hints for now - David
942942
(and (not (set? tag))
943-
(not ('#{any clj clj-or-nil clj-nil number string boolean function object array} tag))
943+
(not ('#{any clj clj-or-nil clj-nil number string boolean function object array js} tag))
944944
(when-let [ps (:protocols (ana/resolve-existing-var env tag))]
945945
(ps protocol)))))))
946946
opt-not? (and (= (:name info) 'cljs.core/not)

0 commit comments

Comments
 (0)