Skip to content

Commit

Permalink
TANAL-57: don't tag with a Class static calls targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronsa committed Jan 15, 2014
1 parent 64ecab7 commit f676e1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/clojure/clojure/tools/analyzer/jvm.clj
Expand Up @@ -85,7 +85,8 @@
(let [[target & args] expr
target (if-let [target (and (not (get (:locals env) target))
(maybe-class target))]
(with-meta (list 'clojure.core/identity target) {:tag Class})
(with-meta (list 'clojure.core/identity target)
{:tag 'java.lang.Class})
target)
args (list* (symbol (subs opname 1)) args)]
(with-meta (list '. target (if (= 1 (count args)) ;; we don't know if (.foo bar) is
Expand Down

0 comments on commit f676e1d

Please sign in to comment.