ClojureScript: spurious warning about symbol not being a protocol

74 views
Skip to first unread message

Praki

unread,
May 21, 2013, 1:16:34 AM5/21/13
to clo...@googlegroups.com
Hi,

For reasons I cant quite fathom, "lein cljsbuild" generates "Symbol X is not a protocol" warning. I am using clojure 1.5.1 and cljsbuild 0.3.2. The following code snippet reproduces the issue. Please note that renaming "my.foo" namespace to "foo" compiles with no warning.

;; file:: foo.cljs
(ns my.foo)

(defprotocol IFoo
  (bar[this]))

;; file: fubar.cljs
(ns fubar
  (:require
   [my.foo :as foo]))

(deftype FuBar []
  foo/IFoo
  (bar [this]))

cljs output:
WARNING: Symbol foo/IFoo is not a protocol at line 5 src/fubar.cljs
Successfully compiled "target/classes/public/singularis.js" in 8.822898574 seconds.

I can live to ignore this as it seems to be a spurious warning but perchance anybody has any thoughts/suggestions to fix this, it would be great.

Thanks.

David Nolen

unread,
May 21, 2013, 8:17:39 AM5/21/13
to clojure
Looks like a bug, please open a ticket in JIRA with the example code. Thanks!

David


--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages