<< 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
Environment:

clojure 1.5.1
lein-cljsbuild 0.3.2


Attachments: File CLJS-601    

 Description   

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)

ClojureScript:
> (defn f ([x] x) ([x] (+ x 1)))
[ OK ]
> (f 1)
2



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

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

Generated at Wed Jul 23 19:18:53 CDT 2014 using JIRA 4.4#649-r158309.