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

This seems a bit odd to me. Though for the record, both the clojure and 
clojurescript compilers behave the same, so there's no bug. I'll make a 
note on the JIRA ticket.

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