We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ea2974 commit 017d0f9Copy full SHA for 017d0f9
src/test/clojure/cljs/externs_infer_tests.clj
@@ -385,6 +385,19 @@
385
:with-core? true}))]
386
(is (empty? @ws))))
387
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
+
401
(comment
402
(binding [ana/*cljs-ns* ana/*cljs-ns*]
403
(ana/no-warn
0 commit comments