(ns proj.two
(:require [proj.one] :as one))
(def ProcImpl
(reify one/Proc
(meth [_] nil))) ;; works but should not work as 'meth' is defined in ns: one.
(ns proj.two
(:require [proj.one] :as one))
(def ProcImpl
(reify one/Proc
(one/meth [_] nil))) ;; does not work but should work per the doc on 'defprotocol'.
Yields error: "Caused by: clojure.lang.ExceptionInfo: set! target must be a field or a symbol naming a var at line..."
src/proj/one.cljs
=================
(ns proj.one) (defprotocol Proc (meth [this]))src/proj/two.cljs (correctly works)
=================
(ns proj.two (:require [proj.one] :as one)) (def ProcImpl (reify one/Proc (meth [_] nil))) ;; works but should not work as 'meth' is defined in ns: one.src/proj/two.cljs (also correctly works)
=================
(ns proj.two (:require [proj.one] :as one)) (def ProcImpl (reify one/Proc (one/meth [_] nil))) ;; does not work but should work per the doc on 'defprotocol'.Yields error:
"Caused by: clojure.lang.ExceptionInfo: set! target must be a field or a symbol naming a var at line..."