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

0 votes
in Errors by

defrecord could tell you if, e.g., you didn't specify an interface before leaping into method bodies.

(defrecord TestRecord [afield bfield cfield] (printc [_] (println cfield))) ClassCastException clojure.lang.PersistentList cannot be cast to clojure.lang.Symbol clojure.core/ns-resolve (core.clj:4238)

See http://groups.google.com/group/clojure/browse_thread/thread/f52f90954edd8b09

3 Answers

0 votes
by

Comment made by: importer

stu said: This could be fixed with an assert-valid-defrecord call in core_deftype, similar to assert-valid-fdecl in core.clj. Such a function would also be a place to hang other defrecord error messages.

0 votes
by

Comment made by: importer

Converted from http://www.assembla.com/spaces/clojure/tickets/405

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-405 (reported by alex+import)
...