Found something. When you compile:
(ns repro
(:require [clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as stest]))
(s/fdef clojure.core/range
:args (s/alt :infinite (s/cat)
:finite (s/cat :start (s/? number?)
:end number?
:step (s/? number?))))
(defn -main [& args]
(stest/instrument)
(println (take 1 (range))))
(set! *main-cli-fn* -main)
with :none
and run it, you get:
(0)
but with :advanced
you get:
RangeError: Maximum call stack size exceeded
I don’t have the time to dig into this further, but I’ll make a JIRA ticket fornow