Skip to content

Commit 899372e

Browse files
committed
fix: align with clojure, field access syntax with args is considered a call
1 parent 92b3aba commit 899372e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/clojure/clojure/tools/analyzer.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,8 @@
741741
(merge {:form form}
742742
(-source-info form env)))))
743743
(let [[m-or-f field?] (if (and (symbol? m-or-f)
744-
(= \- (first (name m-or-f))))
744+
(= \- (first (name m-or-f)))
745+
(empty? args))
745746
[(-> m-or-f name (subs 1) symbol) true]
746747
[(if args (cons m-or-f args) m-or-f) false])
747748
target-expr (analyze-form target (ctx env :ctx/expr))

0 commit comments

Comments
 (0)