tools.analyzer

No matching arity exception thrown when attempting to call fn with varargs

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 to reproduce:

(require '[clojure.tools.analyzer.jvm :as aj])
(def env (aj/empty-env))
(def form (read-string "
(defn foo [a]
  (let [err (fn [& msg] (apply str msg))]
      (err \"Invalid arg 'a'\" a)))
"))
(def an (aj/analyze form env))
;; Exception thrown by previous line

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: