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 5cd08b4 commit ccdd5f5Copy full SHA for ccdd5f5
src/test/clojure/cljs/externs_infer_tests.clj
@@ -371,6 +371,22 @@
371
:with-core? true}))]
372
(is (empty? @ws))))
373
374
+(deftest test-cljs-2957
375
+ (let [ws (atom [])
376
+ res (binding [ana/*cljs-static-fns* true]
377
+ (infer-test-helper
378
+ {:forms '[(ns test.foo
379
+ (:import [goog.history Html5History]))
380
+
381
+ (set! *warn-on-infer* true)
382
383
+ (doto (Html5History.)
384
+ (.setUseFragment false))]
385
+ :warnings ws
386
+ :warn true
387
+ :with-core? true}))]
388
+ (is (empty? @ws))))
389
390
(comment
391
(binding [ana/*cljs-ns* ana/*cljs-ns*]
392
(ana/no-warn
0 commit comments