Fork me on GitHub
#cursive
<
2021-09-09
>
greg15:09:46

Hi, I noticed some strange "incorrect arity" warning. I attach screenshots. So there are two files. First contains the protocol definition. The second, a record implementing the protocol. There are three methods. The one with just this argument gets highlighted for no reason, I think. Am I doing something wrong (despite all works fine), or this is an IDE issue?

Alex Miller (Clojure team)16:09:58

I think you don't need the qualifier on the method names in the defrecord? I'm guessing it's treating that as a function invocation and fx-rate-date takes 1 arg but it thinks you are passing it two [_] nil

Alex Miller (Clojure team)16:09:40

you do need the qualifier on the protocol name

greg16:09:52

ok, makes sense, both the solution and the explanation why it highlights it. Thanks