<< Back to previous view

[CLJS-601] Multiple defn with same arity Created: 01/Oct/13  Updated: 07/Oct/13  Resolved: 07/Oct/13

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

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

clojure 1.5.1
lein-cljsbuild 0.3.2

Attachments: File CLJS-601    


In Clojure:

> (defn f ([x] x) ([x] (+ x 1)))
CompilerException java.lang.RuntimeException: Can't have 2 overloads with same arity, compiling:(NO_SOURCE_PATH:1:1)

> (defn f ([x] x) ([x] (+ x 1)))
[ OK ]
> (f 1)

Comment by David Nolen [ 07/Oct/13 7:54 PM ]

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

Generated at Wed Jan 17 07:06:42 CST 2018 using JIRA 4.4#649-r158309.