Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

`
user=> (defprotocol P (f [this ^long x]))
P
user=> (deftype T [] P (f [_ x] x))

<java.lang.Class class user.T>

user=> (f (T.) 5)

ClassCastException user$eval7289$fn7290$G7280__7297 cannot be cast to clojure.lang.IFn$OLO user/eval7313 (NO_SOURCE_FILE:1)
`

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1548 (reported by bbloom)
...