Repeatable using lein mies with [clojurescript "1.9.14"] using script/build.bat (and script/release.bat)
(ns spec-multiarity.core (:require [cljs.spec :as s :include-macros true])) (enable-console-print!) (defn adder ([a] a) ([a b] (+ a b))) (s/fdef adder :args (s/cat :a integer? :b (s/? integer?)) :ret integer?) (do (s/instrument #'adder) (adder 1))
core.cljs:8 Uncaught TypeError: spec_multiarity.core.adder.cljs$core$IFn$_invoke$arity$1 is not a functionspec_multiarity$core$adder @ core.cljs:8cljs.core.apply.cljs$core$IFn$_invoke$arity$2 @ core.cljs:3572cljs$core$apply @ core.cljs:3563(anonymous function) @ spec.cljs:290cljs.spec.spec_checking_fn.G__8367__delegate @ spec.cljs:289cljs.spec.spec_checking_fn.G__8367 @ spec.cljs:284(anonymous function) @ core.cljs:30
fixed https://github.com/clojure/clojurescript/commit/2f012cec88d05f42dd145338d9c942498d3ceb13
I looked at this a bit more closely and I was mistaken. Looking into it.
Repeatable using lein mies with [clojurescript "1.9.14"] using script/build.bat (and script/release.bat)
(ns spec-multiarity.core (:require [cljs.spec :as s :include-macros true])) (enable-console-print!) (defn adder ([a] a) ([a b] (+ a b))) (s/fdef adder :args (s/cat :a integer? :b (s/? integer?)) :ret integer?) (do (s/instrument #'adder) (adder 1))
core.cljs:8 Uncaught TypeError: spec_multiarity.core.adder.cljs$core$IFn$_invoke$arity$1 is not a functionspec_multiarity$core$adder @ core.cljs:8cljs.core.apply.cljs$core$IFn$_invoke$arity$2 @ core.cljs:3572cljs$core$apply @ core.cljs:3563(anonymous function) @ spec.cljs:290cljs.spec.spec_checking_fn.G__8367__delegate @ spec.cljs:289cljs.spec.spec_checking_fn.G__8367 @ spec.cljs:284(anonymous function) @ core.cljs:30