Hi,

I noticed the following at the CLJS REPL:

ClojureScript:cljs.user> (let [f #(do 1)] (f 2))
1
ClojureScript:cljs.user> (let [f (fn [] (do 1))] (f 2))
1
ClojureScript:cljs.user> (let [f (fn [_] (do 1))] (f 2))
1
ClojureScript:cljs.user> (let [f (fn [_ _] (do 1))] (f 2))
1
ClojureScript:cljs.user> (let [f (fn [x y] (do 1))] (f 2))
1
ClojureScript:cljs.user> (defn f [] 1)
#<
function f() {
    return 1;
}
>
ClojureScript:cljs.user> (f 2)
WARNING: Wrong number of args (1) passed to cljs.user/f at line 8
1

At the Clojure REPL, this throws exception:

user=> (let [f #(do 1)] (f 2))
ArityException Wrong number of args (1) passed to: user$eval951$f
clojure.lang.AFn.throwArity (AFn.java:437)

This looks like a bug. Didn't find any relevant outstanding ticket on
JIRA, so posting it here first.

Shantanu

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to