Completed
Details
Details
Assignee
Ambrose Bonnaire-Sergeant
Ambrose Bonnaire-SergeantReporter
Former user
Former user(Deactivated)Priority

Created August 17, 2014 at 10:16 AM
Updated December 30, 2014 at 11:53 PM
Resolved December 30, 2014 at 11:53 PM
Something seems to be wrong when using core.typed's defn with count:
; this fails type checking (t/defn f [c :- clojure.lang.Counted] :- t/Int (count c)) ; but this passes (t/ann f [clojure.lang.Counted -> t/Int]) (defn f [c] (count c))
The error I get is:
Exception in thread "main" java.lang.IllegalArgumentException: No method in multimethod 'fold-rhs' for dispatch value: [:clojure.core.typed.subst/substitute clojure.core.typed.path_rep.CountPE]
I've posted the whole stack trace here: https://gist.github.com/t6/af21a4f4c6195cd27743