Welcome! Please see the About page for a little more info on how this works.

0 votes
in Spec by

Currently defmulti and defmethod don't have specs and don't have much macro validation.

user=> (defmulti 5 class) ClassCastException class java.lang.Long cannot be cast to class clojure.lang.IObj

Add specs for defmulti and defmethod.


user=> (defmulti 5 class) Syntax error macroexpanding clojure.core/defmulti at (1:1). 5 - failed: simple-symbol? at: [:fn-name]

Patch: clj-2416.patch

1 Answer

0 votes
Reference: https://clojure.atlassian.net/browse/CLJ-2416 (reported by alexmiller)