Given the following ClojureScript:
(ns foo)
(defn bar [] 42)
(ns baz
(:require [foo :as x]))
(defn quux [foo]
(x/bar))
baz.quux compiles to:
baz.quux = function quux(foo) {
return foo.bar.call(null)
};
i.e. the parameter name shadows the top-level "foo" namespace.
Is that a bug?
Regar
Yes. Please open a ticket in JIRA.
Thanks!
On Fri, Apr 13, 2012 at 3:40 AM, Stuart Campbell wrote:
> Given the following ClojureScript:
>
> (ns foo)
> (defn bar [] 42)
>
> (ns baz
> (:require [foo :as x]))
>
> (defn quux [foo]
> (x/bar))
>
> baz.quux compiles to:
>
> baz.quux = function quu
Done: http://dev.clojure.org/jira/browse/CLJS-180
On 13 April 2012 22:14, David Nolen wrote:
> Yes. Please open a ticket in JIRA.
>
> Thanks!
>
> On Fri, Apr 13, 2012 at 3:40 AM, Stuart Campbell wrote:
>
>> Given the following ClojureScript:
>>
>> (ns foo)
>> (defn bar [] 42)
>>
>> (ns baz
>>