File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 442
442
([form mmvar retag gfn]
443
443
(let [id (random-uuid )
444
444
predx #(let [mm @mmvar]
445
- (c/and (contains? (methods mm)
446
- ((-dispatch-fn mm) %))
445
+ (c/and (-get-method mm ((-dispatch-fn mm) %))
447
446
(mm %)))
448
447
dval #((-dispatch-fn @mmvar) %)
449
448
tag (if (keyword? retag)
Original file line number Diff line number Diff line change 82
82
(is (= (s/form ::foo-1788 )
83
83
'(cljs.spec/multi-spec cljs.spec-test/mm :mm/type ))))
84
84
85
+ (def h-cljs-1790 (derive (make-hierarchy ) :a :b ))
86
+ (defmulti spec-type-1790 identity :hierarchy #'h-cljs-1790)
87
+ (defmethod spec-type-1790 :b [_]
88
+ (s/spec (constantly true )))
89
+
90
+ (deftest test-cljs-1790
91
+ (s/def ::multi (s/multi-spec spec-type-1790 identity))
92
+ (is (= :b (s/conform ::multi :b )))
93
+ (is (= :a (s/conform ::multi :a ))))
94
+
85
95
; ; Copied from Clojure spec tests
86
96
87
97
(def even-count? #(even? (count %)))
You can’t perform that action at this time.
0 commit comments