ClojureScript

Spurious warning about symbol not being a protocol

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Clojure 1.5.1, ClojureScript, cljsbuild 0.3.2

Description

"lein cljsbuild" generates "Symbol X is not a protocol" warning. The following code snippet reproduces the issue. 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

  1. CLJS-509-clean-up-after-parse-ns.diff
    13/Jun/13 2:17 AM
    2 kB
    Matjaz Gregoric
  2. foo.cljs
    21/May/13 9:22 AM
    0.0 kB
    Praki Prakash
  3. fubar.cljs
    21/May/13 9:22 AM
    0.1 kB
    Praki Prakash

Activity

People

Vote (0)
Watch (5)

Dates

  • Created:
    Updated:
    Resolved: