Protocol methods do not support var args. We should probably add a syntax check for this, http://dev.clojure.org/jira/browse/CLJS-1445
David On Fri, Sep 11, 2015 at 12:13 PM, Yuri Govorushchenko <[email protected]> wrote: > Hello, > > I guess I've stumbled upon a compilation error. The repo for reproducing > is here: > > https://github.com/metametadata/cljs-reify-error > > TL;DR: > > (let [v 123 > obj (clojure.core/reify > Object > (meth [this x y & z] ;; remove ampersand to make this script > work > [v x y z]))] > (println (.meth obj 1 2 3))) > > produces an error: > > ersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, > [self__.v, > ReferenceError: self__ is not defined > > Thanks in advance. > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
