Uploaded image for project: 'Clojure'
  1. CLJ-1024

Varargs protococol impls can be defined but not called

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Declined
    • Affects versions: Release 1.4
    • Fix versions: Release 1.5
    • Labels:
      None
    • Patch:
      Code

      Description

      The compiler accepts this:

      (deftype foo []
      clojure.lang.IFn
      (invoke [this & xs]))

      However calling ((foo.) :bar) will throw an AbstractMethodError. Wouldn't some checking be desirable?

        Attachments

          Activity

            People

            • Assignee:
              stu Stuart Halloway
              Reporter:
              alex+import import
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: