[spec] Generator overrides for spec aliases are not respected

Description

Generator overrides for spec aliases are not respected.

1 2 3 4 5 6 7 (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

Providing a generator override for the original spec works as expected:

1 2 (every? double? (gen/sample (s/gen ::alias {::original gen/double}))) ;; => true

Environment

None

Status

Assignee

Unassigned

Reporter

Nate Smith

Labels

Approval

Vetted

Patch

None

Affects versions

Release 1.9

Priority

Major
Configure