We're updating the issue view to help you get more done. 

cljs.spec/exercise-fn doesn't work when passed a quoted symbol

Description

1 2 3 4 5 6 7 8 cljs.user=> (require '[clojure.spec :as s]) nil cljs.user=> (defn a [b] 2) #'cljs.user/a cljs.user=> (s/fdef a :args (s/cat ::first number?) :ret #(= % 2)) cljs.user/a cljs.user=> (s/exercise-fn `a) clojure.lang.ExceptionInfo: Assert failed: (symbol? sym) at line 1 <cljs repl> {:file "<cljs repl>", :line 1, :column 1, :root-source-info {:source-type :fragment, :source-form (s/exercise-fn (quote cljs.user/a))}, :tag :cljs/analysis-error}

Environment

None

Status

Assignee

David Nolen

Reporter

António Monteiro

Labels

Approval

None

Patch

Code and Test

Fix versions

Priority

Major