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

clojure 1.5.1
lein-cljsbuild 0.3.2

Attachments: File CLJS-602     File CLJS-602-v2.diff    


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.

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

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

Generated at Tue Jan 16 21:40:58 CST 2018 using JIRA 4.4#649-r158309.