Varargs protococol impls can be defined but not called

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?

Environment

None

Assignee

Stuart Halloway

Reporter

import

Labels

None

Approval

None

Patch

Code

Fix versions

Affects versions

Priority

Minor
Configure