Uploaded image for project: 'core.typed'
  1. CTYP-143

extend & extend-protocol with (Class/forName "[B") as Class dispatch value fails

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: Backlog
    • Components: Clojure Checker
    • Labels:
      None

      Description

      it can be observed in this example: https://gist.github.com/mpenet/23fd53aabc853eb7e565

      using extend instead of extend-protocol returns a type error:

      Type Error (qbits/alia/codec.clj:75:1) Must provide
                      a Class or nil as first argument to extend, got
                      java.lang.Class 
      

      This issue in clj.core could also be of interest http://dev.clojure.org/jira/browse/CLJ-1381

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mpenet Max Penet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: