We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40b7216 commit c472415Copy full SHA for c472415
1 file changed
src/main/clojure/clojure/tools/analyzer/passes/jvm/process_method_value.clj
@@ -14,11 +14,10 @@
14
"Transforms :invoke nodes whose :fn is a :method-value into the
15
corresponding :instance-call, :static-call, or :new node. "
16
{:pass-info {:walk :post :depends #{#'analyze-host-expr}}}
17
- [{:keys [op] :as ast}]
+ [{:keys [op args env] :as ast}]
18
(if (and (= :invoke op)
19
(= :method-value (:op (:fn ast))))
20
- (let [{:keys [args env]} ast
21
- {:keys [class method kind param-tags]} (:fn ast)]
+ (let [{:keys [class method kind param-tags]} (:fn ast)]
22
(when (and (= :instance kind) (empty? args))
23
(throw (ex-info (str "Qualified instance method " (.getName ^Class class) "/." method
24
" must have a target")
0 commit comments