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

Spec instrumentation regression with varargs / :static-fns

Description

With the following repl:

1 clj -Srepro -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.439"} org.clojure/test.check {:mvn/version "RELEASE"}}}' -m cljs.main -co '{:static-fns true}' -re node -r

..and code:

1 2 3 4 5 6 7 8 9 10 11 12 13 (require '[clojure.spec.alpha :as s]) (require '[clojure.spec.test.alpha :as st]) (defn defk [key & [doc]] key) (s/fdef defk :args (s/cat :key keyword? :doc (s/? string?))) (st/instrument) (defk 1 1)

The last line should throw, but doesn't, if `:static-fns` is enabled.

This is a regression relative to 1.10.339. See CLJS-2793.

Environment

1.10.439 (see repro)

Status

Assignee

David Nolen

Reporter

Matthew Huebert

Labels

Approval

Vetted

Patch

None

Priority

Blocker