Skip to content

Instantly share code, notes, and snippets.

@mpenet
Created March 16, 2013 20:39
Show Gist options
  • Save mpenet/5178232 to your computer and use it in GitHub Desktop.
Save mpenet/5178232 to your computer and use it in GitHub Desktop.
problem with Seq* ?
user> (defn foo [x] (apply str x))
#'user/foo
user> (ann foo [(Seq* String) -> String])
[user/foo (Fn [(Seq* java.lang.String) -> java.lang.String])]
user> (cf (foo (seq ["a" "b"])))
Exception Type Error, NO_SOURCE_FILE:1
Actual type
(clojure.core.typed/Option (I (clojure.lang.ISeq (U (Value "a") (Value "b"))) (CountRange 1)))
is not a subtype of Expected type
(Seq* java.lang.String) clojure.core.typed/type-error (subtype.clj:24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment