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

Record type name and advanced optimization

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: 0.0-3058
    • Fix versions: None
    • Labels:
      None

      Description

      It is not possible to query type name in advanced compilation.
      Code below prints correct record name in other compilation modes, but under advanced compilation it prints constructor source code.

      (defrecord FooBar [a])
      
      (def fb (FooBar. 1))
      
      (prn (-> fb))
      (prn (-> fb type))
      (prn (-> fb type pr-str))
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              skardan Daniel Skarda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: