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

fspec cannot be reused in clojurescript but can be in clojure

Description

fspec cannot be defined once and reused for multiple functions with the same spec in Clojurescript but it can in Clojure.

1 2 3 4 5 6 7 8 9 10 (s/def ::add-spec (s/fspec :args (s/cat :n pos?) :ret number?)) (s/def add2 ::add-spec) (defn add2 [n] (+ n 2)) (stest/instrument) ; won't invoke spec checking (add2 0)

See a minimal example here: https://github.com/talgiat/cljs-spec-bug

Environment

None

Status

Assignee

Unassigned

Reporter

Alex Miller

Labels

Approval

None

Patch

None

Priority

Major