Fork me on GitHub
#clj-kondo
<
2023-10-21
>
peterh12:10:15

I want to create an empty array that holds keywords, using (make-array clojure.lang.Keyword 64) . This works fine without any imports, but clj-kondo marks this with an error "Unresolved symbol: clojure". I tried explicitly importing it, using (:import [clojure.lang Keyword]), but the error persists. Is there a simple workaround or do I have to configure clj-kondo to ignore this case somehow?

borkdude13:10:27

Is this in a .cljc namespace?

peterh13:10:57

Oh well, I forgot… yes it is. A reader conditional made the error go away. 😅