diff --git a/deps.edn b/deps.edn new file mode 100644 index 0000000..ccd9a31 --- /dev/null +++ b/deps.edn @@ -0,0 +1 @@ +{:paths ["src"]} diff --git a/src/spec_tools/core.cljc b/src/spec_tools/core.cljc index 8e4f338..f298f3b 100644 --- a/src/spec_tools/core.cljc +++ b/src/spec_tools/core.cljc @@ -479,9 +479,9 @@ (let [data (clojure.core/merge {:spec form} (extra-spec-map this))] `(spec-tools.core/spec ~data))) - IFn - #?(:clj (invoke [this x] (if (ifn? spec) (spec x) (fail-on-invoke this))) - :cljs (-invoke [this x] (if (ifn? spec) (spec x) (fail-on-invoke this))))) + #?@(:bb [] + :clj [IFn (invoke [this x] (if (ifn? spec) (spec x) (fail-on-invoke this)))] + :cljs [IFn (-invoke [this x] (if (ifn? spec) (spec x) (fail-on-invoke this)))])) #?(:clj (defmethod print-method Spec