I'm also interested in this functionality. Is there an existing JIRA issue 
we can follow for allowing specs for multimethods?

On Thursday, 18 August 2016 05:32:01 UTC-7, Patrik Sundberg wrote:
>
> Hi,
>
> Am I right to think you can't currently fdef a defmulti function? I tried 
> and when running tests using clojure.spec.test/instrument I see:
> 1. Unhandled java.lang.ClassCastException
>    clojure.spec.test$spec_checking_fn$fn__12959 cannot be cast to
>    clojure.lang.MultiFn
>
>                   core.clj: 1806  clojure.core/get-method
>                   core.clj: 1806  clojure.core/get-method
>            time_series.clj:  474  tulos.time-series/eval181936/fn
>
> So I guess what happens is the fdef+instrument adds a normal fn wrapper, 
> which then isn't a multi method and it breaks down.
>
> Has this been discussed before? Any plans? I didn't find anything.
>
> Thanks,
> Patrik
>
>

-- 
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.

Reply via email to