Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created November 22, 2013 13:23
Show Gist options
  • Save swannodette/7599766 to your computer and use it in GitHub Desktop.
Save swannodette/7599766 to your computer and use it in GitHub Desktop.
(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.
@swannodette
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment