Skip to content

Commit 98effc9

Browse files
committed
add test for CLJS-1924
1 parent c3afc8a commit 98effc9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/clojure/cljs/externs_infer_tests.clj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,16 @@
346346
:with-core? true}))]
347347
(is (empty? @ws))))
348348

349+
(deftest test-cljs-1924
350+
(let [ws (atom [])
351+
res (binding [ana/*cljs-static-fns* true]
352+
(infer-test-helper
353+
{:forms '[(defrecord Foo [])]
354+
:warnings ws
355+
:warn true
356+
:with-core? true}))]
357+
(is (empty? @ws))))
358+
349359
(comment
350360
(binding [ana/*cljs-ns* ana/*cljs-ns*]
351361
(ana/no-warn

0 commit comments

Comments
 (0)