Fixed in 1.6.
David
On Thu, Feb 27, 2014 at 3:50 PM, Brent Millare wrote:
> Clojure 1.5.1
>
> user=> (defprotocol IEmit (-emit [x]))
> IEmit
>
> user=> (defrecord css [y] IEmit (-emit [_] y))
> user.css
>
> user=> (-emit (->css 3))
> 3
>
> user=> (map -emit [(->css 3)])
> IllegalArgumentExcepti
Clojure 1.5.1
user=> (defprotocol IEmit (-emit [x]))
IEmit
user=> (defrecord css [y] IEmit (-emit [_] y))
user.css
user=> (-emit (->css 3))
3
user=> (map -emit [(->css 3)])
IllegalArgumentException No matching field found: emit for class user.css
clojure.lang.Reflector.getInstanceField (Refle