Skip to content

Commit 017d0f9

Browse files
committed
add failing test
1 parent 6ea2974 commit 017d0f9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/clojure/cljs/externs_infer_tests.clj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,19 @@
385385
:with-core? true}))]
386386
(is (empty? @ws))))
387387

388+
(deftest test-cljs-3236
389+
(let [ws (atom [])
390+
res (binding [ana/*cljs-static-fns* true]
391+
(infer-test-helper
392+
{:forms '[(ns test.foo)
393+
(set! *warn-on-infer* true)
394+
(defprotocol IFoo
395+
(bar [this]))]
396+
:warnings ws
397+
:warn true
398+
:with-core? true}))]
399+
(is (empty? @ws))))
400+
388401
(comment
389402
(binding [ana/*cljs-ns* ana/*cljs-ns*]
390403
(ana/no-warn

0 commit comments

Comments
 (0)