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 c4bc714 commit cc0d6e0Copy full SHA for cc0d6e0
src/test/clojure/cljs/type_inference_tests.clj
@@ -350,10 +350,12 @@
350
(cljs.env/with-compiler-env test-cenv
351
(:tag (analyze test-env '(dec x)))))
352
'number))
353
- (is (= (ana/no-warn
354
- (cljs.env/with-compiler-env test-cenv
355
- (:tag (analyze test-env '(int x)))))
356
- 'number))
+ ;; we relaxed int, making it too strict just creates
+ ;; problems for legit coercion, Clojure is vague so we are vague :)
+ ;; (is (= (ana/no-warn
+ ;; (cljs.env/with-compiler-env test-cenv
357
+ ;; (:tag (analyze test-env '(int x)))))
358
+ ;; 'number))
359
(is (= (ana/no-warn
360
361
(:tag (analyze test-env '(unchecked-int x)))))
0 commit comments