ClojureScript

defmulti compiler macro tries to throw a blank string in error case

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Test case

> (defmulti foo bar {:hierarchy h})
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Throwable

with the attached patch this is
clojure.lang.ExceptionInfo: The syntax for defmulti has changed. Example: (defmulti name dispatch-fn :default dispatch-value)

Activity

Hide
Herwig Hochleitner added a comment -

Feels kind of stupid to open a ticket for this.
Can we have a meta-ticket for patches that won't need any discussion, such as this almost - syntax error?

Show
Herwig Hochleitner added a comment - Feels kind of stupid to open a ticket for this. Can we have a meta-ticket for patches that won't need any discussion, such as this almost - syntax error?

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: