Uploaded image for project: 'ClojureScript'
  1. CLJS-871

.-default property access returns nil

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 1.7.145
    • Fix versions: 1.9.671
    • Labels:
      None
    • Patch:
      Code and Test

      Description

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

      (deftype Foo [default])
      
      (let [foo (Foo. "bar")]
        (.-default foo))
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              noprompt Joel Holdbrooks
            • Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: