.-default property access returns nil

Description

Types defined with deftype/defrecord which have a default field will incorrectly return nil with property access. The following example will return nil.

Environment

None

Activity

Show:
Joel Holdbrooks
October 14, 2014, 11:03 PM

Are you sure, David? That might make this patch a bit more noisy. If it's not a problem I'm happy to do it.

David Nolen
October 15, 2014, 12:06 AM

I'm sure, I'd like to avoid this kind of code duping. Cleaner in the end and better moving forward.

Joel Holdbrooks
March 18, 2015, 5:43 PM

Updated to use new refactorings

David Nolen
March 18, 2015, 5:46 PM

The warning is not desirable. Instead we should just munge and ensure property access always works.

David Nolen
August 1, 2017, 11:42 PM

Now that we have CLJS-1620, a warning seems like a good answer.

Assignee

Unassigned

Reporter

Joel Holdbrooks

Labels

None

Approval

None

Patch

Code and Test

Fix versions

Affects versions

Priority

Major