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 889bfd1 commit 7b4bd89Copy full SHA for 7b4bd89
src/test/clojure/cljs/externs_infer_tests.clj
@@ -357,6 +357,20 @@
357
:with-core? true}))]
358
(is (empty? @ws))))
359
360
+(deftest test-cljs-2862
361
+ (let [ws (atom [])
362
+ res (binding [ana/*cljs-static-fns* true]
363
+ (infer-test-helper
364
+ {:forms '[(ns demo.app)
365
+ (set! *warn-on-infer* true)
366
+ (deftype Foo []
367
+ Object
368
+ (bar [this] :bar))]
369
+ :warnings ws
370
+ :warn true
371
+ :with-core? true}))]
372
+ (is (empty? @ws))))
373
+
374
(comment
375
(binding [ana/*cljs-ns* ana/*cljs-ns*]
376
(ana/no-warn
0 commit comments