Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. user=> (cf (fn [v :- NonEmptyVec] (conj v 1)))
  2. Type Error (/tmp/form-init6086312256694855315.clj:1:28) Polymorphic function conj could not be applied to arguments:
  3. Polymorphic Variables:
  4. x
  5. y
  6.  
  7. Domains:
  8. (clojure.lang.IPersistentVector x) x x *
  9. (clojure.lang.APersistentMap x y) (U (HVec [x y]) (Seqable (clojure.lang.IMapEntry x y)) (IMapEntry x y) nil) (U (HVec [x y]) (Seqable (clojure.lang.IMapEntry x y)) (IMapEntry x y) nil) *
  10. (clojure.lang.IPersistentMap x y) (U (HVec [x y]) (Seqable (clojure.lang.IMapEntry x y)) (IMapEntry x y) nil) (U (HVec [x y]) (Seqable (clojure.lang.IMapEntry x y)) (IMapEntry x y) nil) *
  11. (clojure.lang.IPersistentSet x) x x *
  12. (ASeq x) x x *
  13. nil x x *
  14. (Coll Any) Any Any *
  15.  
  16. Arguments:
  17. clojure.core.typed/NonEmptyVec (Val 1)
  18.  
  19. Ranges:
  20. (clojure.lang.IPersistentVector x)
  21. (clojure.lang.APersistentMap x y)
  22. (clojure.lang.IPersistentMap x y)
  23. (clojure.lang.IPersistentSet x)
  24. (ASeq x)
  25. (clojure.lang.PersistentList x)
  26. (Coll Any)
  27.  
  28. in: (conj v 1)
  29. in: (conj v 1)
  30.  
  31.  
  32.  
  33. ExceptionInfo Type Checker: Found 1 error clojure.core/ex-info (core.clj:4403)
  34. user=>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement