amitrathore / conjure

a mocking library for clojure
http://s-expressions.com
73 stars 9 forks source link

Type hints break mocking #16

Open crclark opened 5 years ago

crclark commented 5 years ago
(require '[conjure.core :as conjure])
(defn foo [^Object o ^double d ^Object o2] d)
(conjure/mocking [foo] (foo 1 1.2 1))

the above throws:

conjure.core$stub_fn$this__36707 cannot be cast to clojure.lang.IFn$ODOO