给出以下代码
(ns app.core)
(set! *warn-on-infer* true)
(defprotocol IFoo
(bar [this]))
;; warns on inference - expected?
(defn not-ok? [v]
(satisfies? IFoo v))
以下推理警告是否是预期的?
WARNING: Cannot infer target type in expression (. v -app$core$IFoo$) at line 10 /Users/user/projects/cljs-protocol-inference-warning/src/app/core.cljs
案例副本在此:https://github.com/dazld/cljs-protocol-inference-warning
备注