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

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: