ClojureScript

multiple arity defn conflicts with namespace

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
    lein-cljsbuild 0.3.2

Description

foo.cljs:

(ns foo)

(defn f [x] x)

bar.cljs:

(ns bar
  (:require foo))

(defn foo
  ([] (foo nil))
  ([x] x))

When compiled in :whitespace mode, js output is incorrect. See attached zip for minimal(ish) example.

Activity

David Nolen made changes -
Field Original Value New Value
Description foo.cljs:
(ns foo)
(defn f [x] x)

bar.cljs:
(ns bar
  (:require foo))
(defn foo
  ([] (foo nil))
  ([x] x))

When compiled in :whitespace mode, js output is incorrect. See attached zip for minimal(ish) example.
foo.cljs:
{code}
(ns foo)
(defn f [x] x)
{code}

bar.cljs:
{code}
(ns bar
  (:require foo))
(defn foo
  ([] (foo nil))
  ([x] x))
{code}

When compiled in :whitespace mode, js output is incorrect. See attached zip for minimal(ish) example.
David Nolen made changes -
Description foo.cljs:
{code}
(ns foo)
(defn f [x] x)
{code}

bar.cljs:
{code}
(ns bar
  (:require foo))
(defn foo
  ([] (foo nil))
  ([x] x))
{code}

When compiled in :whitespace mode, js output is incorrect. See attached zip for minimal(ish) example.
foo.cljs:
{code}
(ns foo)

(defn f [x] x)
{code}

bar.cljs:
{code}
(ns bar
  (:require foo))

(defn foo
  ([] (foo nil))
  ([x] x))
{code}

When compiled in :whitespace mode, js output is incorrect. See attached zip for minimal(ish) example.
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: