Created
March 16, 2013 20:39
-
-
Save mpenet/5178232 to your computer and use it in GitHub Desktop.
problem with Seq* ?
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
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