<< Back to previous view

[CLJS-603] multiple arity defn conflicts with namespace Created: 02/Oct/13  Updated: 06/Oct/13  Resolved: 06/Oct/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: George Fraser Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None

clojure 1.5.1
lein-cljsbuild 0.3.2

Attachments: GZip Archive foo.tar.gz    



(ns foo)

(defn f [x] x)


(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.

Comment by Jozef Wagner [ 03/Oct/13 4:59 AM ]

a possible duplicate of CLJS-456 ?

Comment by David Nolen [ 03/Oct/13 11:44 PM ]

Yes this appears to dupe CLJS-456. However, we should use this as one of thee test cases. Let's keep this open until CLJS-456 gets closed.

Comment by David Nolen [ 06/Oct/13 1:17 PM ]

It appears this bug is different from CLJS-456, for some reason self calls are not fully qualified?

Comment by David Nolen [ 06/Oct/13 2:05 PM ]

fixed, http://github.com/clojure/clojurescript/commit/aa8d69ef69d76f9622d72c4b8d85cb6f978d8a83

Generated at Fri Jan 19 21:30:29 CST 2018 using JIRA 4.4#649-r158309.