Skip to content

Instantly share code, notes, and snippets.

@arohner
Created September 15, 2014 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arohner/8380b59a839c0ec23058 to your computer and use it in GitHub Desktop.
Save arohner/8380b59a839c0ec23058 to your computer and use it in GitHub Desktop.
datomic into {}
Type Error (flowmeter/util/datomic.clj:29:3) Polymorphic function into could not be applied to arguments:
Polymorphic Variables:
x
y
Domains:
(t/Map x y) (t/U nil (Seqable (t/U nil (IMapEntry x y) (t/HVec [x y]) (Seqable (clojure.lang.IMapEntry x y)))))
(t/Vec x) (t/U nil (Seqable x))
(t/Set x) (t/U nil (Seqable x))
(t/Coll t/Any) (t/U nil (Seqable t/Any))
Arguments:
(t/HMap :complete? true) datomic.query.EntityMap
Ranges:
(t/Map x y)
(t/Vec x)
(t/Set x)
(t/Coll t/Any)
with expected type:
(t/HMap :mandatory {})
in: (into {} em)
@arohner
Copy link
Author

arohner commented Sep 15, 2014

(t/check-form* (let [em (d/entity db 17592186045429)] (into {} em)))
[(t/HMap :mandatory {:user/api-tokens (PersistentHashSet datomic.query.EntityMap), :user/password (t/Value "XXX"), :user/username (t/Value "arohner@gmail.com")} :complete? true) {:then tt, :else ff}]

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