Constrained Records Cannot have :f field #18

frenchy64 opened this Issue Jun 18, 2012 · 2 comments

2 participants


"f" is hardcoded here.

This seems to do funny things with :f fields in records. Investigating.


Do you have a test to show it? I think I've pushed a fix (3bee3bd), but would like to add a test for regression.

typed.core=> (defconstrainedrecord A [f]
               "" [(number? f)])
typed.core=> (assoc (->A 1) :f 2)
#<ClassCastException java.lang.ClassCastException: java.lang.Long cannot be cast to clojure.lang.IFn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment