clj-commons / potemkin

some ideas which are almost good
572 stars 53 forks source link

Exception with definterface+ and defrecord+ in 0.3.4 #19

Closed w01fe closed 10 years ago

w01fe commented 10 years ago

Reduced from exception in our codebase for real usage when upgrading to 0.3.4-- compiling this ns:

(ns test
  (:require
   potemkin))

(potemkin/definterface+ I
  (zzz [this]))

(potemkin/defrecord+ R
  []
  I
  (zzz [this] nil))

results in an exception for me:

Wrong number of args (0) passed to: test$eval2466$fn

Any ideas? Thanks!

w01fe commented 10 years ago

Sweet, thanks!

ztellman commented 10 years ago

Literally only noticed this right now, not sure how I missed it last week.