cursive icon indicating copy to clipboard operation
cursive copied to clipboard

incorrect arrity warning inside reader conditional in cljc file

Open scottlowe opened this issue 7 years ago • 2 comments

This is a bit of a rare edge case, admittedly, but I thought that you might want to know about it anyway; so you can decide if you wish to investigate further (or not!).

I have code similar to the following snippet in several places in a project that requires a hash-map to have some additional fields attached server-side (.clj), but not client-side (.cljs):

(-> {:foo :bar
     :qux :quxx}
    #?(:clj (assoc :my-other-key "blah")))

I get the wavy underline warning: Incorrect arity 2 for clojure.core/assoc

scottlowe avatar Feb 24 '18 01:02 scottlowe

This is still an issue in Cursive 1.12.4-2022.1.

Screenshot 2022-07-13 at 10 14 36 AM

scottlowe avatar Jul 13 '22 14:07 scottlowe

I have just discovered that this issue relates to issue https://github.com/cursive-ide/cursive/issues/771.

scottlowe avatar Jul 13 '22 15:07 scottlowe