给定以下代码
(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
注意