Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

Currently you can assign a Closure namespace to a var without getting a warning.

Minimal (link: https://gist.github.com/bensu/e146fff87a67f41798ca text: sample):

`
(ns import-names.core
(:import [goog debug]))

(def debug goog.debug)
`

3 Answers

0 votes
by

Comment made by: dnolen

The example case is a bit complected. Besides importing a name that matches a def you are also assigning a google closure namespace to a local. This will likely cause problems on its own. We need more information.

0 votes
by

Comment made by: bensu

We should check that {{:require}} ed and {{:import}} ed namespaces are not used as values and then warn about it.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-1271 (reported by bensu)
...