Skip to content

Instantly share code, notes, and snippets.

@wunki
Last active August 29, 2015 13:57
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 wunki/9465858 to your computer and use it in GitHub Desktop.
Save wunki/9465858 to your computer and use it in GitHub Desktop.
Type annotation for rename-keys
(ann ^:no-check clojure.set/rename-keys [(Map Any Any) (Map Keyword Keyword) -> (Map Any Any)])
;; Type Error (gibbon/service/postgres.clj:23:7) Type mismatch:
;; Expected: (Map Any Any)
;; Actual: (TFn [[a :variance :covariant] [b :variance :covariant]] (APersistentMap a b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment