Completed
Details
Assignee
UnassignedUnassignedReporter
importimportLabels
Approval
OkPatch
CodePriority
MajorAffects versions
Fix versions
Details
Details
Assignee
Unassigned
UnassignedReporter
import
importLabels
Approval
Ok
Patch
Code
Priority

Affects versions
Fix versions
Created September 19, 2016 at 5:50 PM
Updated October 28, 2016 at 8:24 PM
Resolved October 28, 2016 at 8:24 PM
This code works fine in 1.9.0-alpha12:
(defn f [x] (+ x 1)) (s/def f (s/fspec :args (s/cat :x number?) :ret number?)) (stest/check `f)
But if we factor the fspec out into its own keyword:
(defn f [x] (+ x 1)) (s/def ::inc (s/fspec :args (s/cat :x number?) :ret number?)) (s/def f ::inc) (stest/check `f)
The check fails with the exception:
({:failure #error { :cause "No :args spec" :data #:clojure.spec{:failure :no-args-spec} :via [{:type clojure.lang.ExceptionInfo :message "No :args spec" :data #:clojure.spec{:failure :no-args-spec} :at [...]}] :trace [...]}, :sym user/f, :spec :user/inc})
The check function doesn't seem to be resolving ::inc, when presumably it should.
Patch: clj-2024-2.patch