File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10521052 (-lookup [this k] (get specs k))
10531053 (-lookup [_ k not-found] (get specs k not-found))
10541054 Spec
1055- (conform* [_ f] (if (fn ? f)
1055+ (conform* [_ f] (if (ifn ? f)
10561056 (if (identical? f (validate-fn f specs *fspec-iterations*)) f ::invalid )
10571057 ::invalid ))
10581058 (unform* [_ f] f)
10591059 (explain* [_ path via in f]
1060- (if (fn ? f)
1060+ (if (ifn ? f)
10611061 (let [args (validate-fn f specs 100 )]
10621062 (if (identical? f args) ; ;hrm, we might not be able to reproduce
10631063 nil
10721072 (when fnspec
10731073 (let [cargs (conform argspec args)]
10741074 (explain-1 fform fnspec (conj path :fn ) via in {:args cargs :ret cret})))))))))
1075- {path {:pred 'fn ? :val f :via via :in in}}))
1075+ {path {:pred 'ifn ? :val f :via via :in in}}))
10761076 (gen* [_ _ _ _] (if gfn
10771077 (gfn )
10781078 (when-not fnspec
You can’t perform that action at this time.
0 commit comments