We're updating the issue view to help you get more done. 

Using keywords in place of symbols for defrecord fields causes a compiler exception with incorrect line number

Description

Possibly related to http://dev.clojure.org/jira/browse/CLJ-1261: a defrecord like

1 2 3 (defn foo [x]) (defrecord Bar [:b])

Throws an exception, like you'd expect:

1 java.lang.ClassCastException: clojure.lang.Keyword cannot be cast to clojure.lang.IObj, compiling:(tesser/quantiles_test.clj:45:15)

However, this exception's line and character indicates the error is in the previous form: the defn, not the defrecord. This can be really tricky to figure out when the expressions are more complicated.

Environment

None

Status

Assignee

Unassigned

Reporter

Kyle Kingsbury

Labels

Approval

Triaged

Patch

None

Affects versions

Release 1.6

Priority

Minor