Hi - Just noticed that the :ret function in fdef seems to be ignored in 1.9.0-alpha6:
user=> (require '[clojure.spec :as s]) user=> (defn dummy [x] (if x "yes" "no")) user=> (s/fdef dummy #_=> :args (s/cat :x integer?) #_=> :ret integer?) user=> (s/instrument #'dummy) user=> (dummy 3) (println *clojure-version*) ExceptionInfo Call to #'user/dummy did not conform to spec: val: "yes" fails at: [:ret] predicate: integer? :clojure.spec/args (3) clojure.core/ex-info (core.clj:4703) {:major 1, :minor 9, :incremental 0, :qualifier alpha5} ;------------------------------------------------------------------- user=> (dummy 3) (println *clojure-version*) "yes" {:major 1, :minor 9, :incremental 0, :qualifier alpha6} -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.