Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

We currently track all {{IFn}} implementors but in order to do arity checking of statically analyzeable invokes of keywords, vector, etc. we need to do a bit more. {{extend-type}} should update the type in the compiler state with {{:method-params}} {{:max-fixed-arity}} and {{:variadic}}. Then we can just reuse the existing checks in {{cljs.analyzer/parse-invoke}}.

1 Answer

0 votes
Reference: https://clojure.atlassian.net/browse/CLJS-1373 (reported by dnolen)