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

Status

Assignee

Stuart Halloway

Reporter

import

Labels

None

Approval

None

Patch

Code

Fix versions

Affects versions

Release 1.4

Priority

Minor