Details
-
Type:
Defect
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: Release 1.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:1.2, 1.3 beta3
-
Patch:Code
-
Approval:Incomplete
Description
The :hierarchy option for defmulti should be passed a var, but this is not mentioned in the doc string.
The error message from passing the hierarchy directly is rather cryptic:
Evaluation aborted on java.lang.ClassCastException: clojure.lang.PersistentArrayMap cannot be cast to clojure.lang.IRef (SOURCE_FORM_44:19).
Modified doctoring to clarify the usage of :hierarchy.