<< Back to previous view

[CLJS-602] Too many arguments to def Created: 02/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-602     File CLJS-602-v2.diff    

 Description   

In Clojure:
> (def f [x] x)
throws RuntimeException: Too many arguments to def

In ClojureScript:
> (def f [x] x)
throws ClassCastException: PersistentVector cannot be cast to CharSequence

Clojurescript should throw a helpful error, like Clojure.



 Comments   
Comment by David Nolen [ 07/Oct/13 11:57 PM ]

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

Generated at Fri Jul 25 18:11:59 CDT 2014 using JIRA 4.4#649-r158309.