Created
November 22, 2013 13:23
-
-
Save swannodette/7599766 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [x (cons 1 nil)] | |
(+ x 1)) | |
;; WARNING: cljs.core/+, all arguments must be numbers, got [cljs.core/Cons number] instead. | |
(let [x (interleave (repeat "foo") (repeat "bar"))] | |
(+ x 1)) | |
;; WARNING: cljs.core/+, all arguments must be numbers, got [cljs.core/LazySeq number] instead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ericnormand, sorry I understand the source of your confusion now, that vector is just the types of the argument list - the inference doesn't consider contents of collections - that's definitely outside the realm of what we want to handle in the ClojureScript compiler.