Skip to content
Browse files

* src/clj/cljs/compiler.clj: support protocol type hint

  • Loading branch information...
1 parent e2606fe commit e959e0205a4b42a099c120a77427314d288c965b David Nolen committed Jun 8, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/clj/cljs/compiler.clj
View
5 src/clj/cljs/compiler.clj
@@ -703,8 +703,9 @@
(and protocol tag
(or *cljs-static-fns*
(:protocol-inline env))
- (when-let [ps (:protocols (resolve-existing-var (dissoc env :locals) tag))]
- (ps protocol))))
+ (or (= protocol tag)
+ (when-let [ps (:protocols (resolve-existing-var (dissoc env :locals) tag))]
+ (ps protocol)))))
opt-not? (and (= (:name info) 'cljs.core/not)
(= (infer-tag (first (:args expr))) 'boolean))
ns (:ns info)

0 comments on commit e959e02

Please sign in to comment.
Something went wrong with that request. Please try again.