Hi Alan,
Good catch. This raises a question though: why do deftype and extend-type
take subtly different forms for methods with multiple arities?
;; deftype only works like this:
(foo [this] 1)
(foo [this x] 2)
;; extend-type only works like this:
(foo
([this] 1)
([this x] 2))
The correct way to write this extend-type is
(extend-type MyType
MyProtocol
(something
([this] 1)
([this x] x)))
The version you posted doesn't work in JVM-Clojure either; I don't
have CLJS handy, but I suspect that this version will work fine there.
On Nov 20, 11:36 am, David Nolen
Thanks! Patches welcome as well :)
David
On Sun, Nov 20, 2011 at 2:07 PM, Jeff Valk wrote:
> Issue opened: http://dev.clojure.org/jira/browse/CLJS-104.
>
> Cheers,
> Jeff
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this gro
Issue opened: http://dev.clojure.org/jira/browse/CLJS-104.
Cheers,
Jeff
--
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 w
Please open a ticket for this in JIRA, thanks -
http://dev.clojure.org/jira/browse/CLJS
David
On Sun, Nov 20, 2011 at 12:33 PM, Jeff Valk wrote:
> Hello all,
> I ran into an extend-type issue with the ClojureScript compiler output. If
> there's a better place to report such things, please point