Skip to content

Commit 2055de5

Browse files
committed
add ctor inference assertion
1 parent aead137 commit 2055de5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/clojure/cljs/type_inference_tests.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
'cljs.core/IList))
3737
(is (= (env/with-compiler-env test-cenv
3838
(:tag (analyze test-env '(fn [x] x))))
39-
'function)))
39+
'function))
40+
(is (= (env/with-compiler-env test-cenv
41+
(ana/no-warn
42+
(:tag (analyze test-env '(Foo.)))))
43+
'cljs.core/Foo)))
4044

4145
(deftest if-inference
4246
(is (= (ana/no-warn

0 commit comments

Comments
 (0)