spec别名生成器覆盖不受尊重。
(require '[clojure.spec :as s]))
(require '[clojure.spec.gen :as gen]))
(s/def ::original number?))
(s/def ::alias ::original))
(every? double? (gen/sample (s/gen ::alias {::alias gen/double}))))
;; => false
为原始spec提供生成器覆盖可按预期工作
(every? double? (gen/sample (s/gen ::alias {::original gen/double}))))
;; => true