How can I add a typehint in clojure to fix "ctor can't be resolved" reflection warning, i.e call to a constructor?
You need to add a hint to the constructor argument:
(let [^java.util.Map m {}]
(new java.util.HashMap m))
You need to add a hint to the constructor argument:
(let [^java.util.Map m {}]
(new java.util.HashMap m))