title: How can I add a typehint in clojure to fix "ctor can't be resolved" reflection warning, i.e call to a constructor?
body: <p>The following example function, which uses Clojure's special form for java interop to call a class constructor, causes a reflection warning:</p>
  <pre><code>(defn test-reflection-err []
    (new java.util.HashMap {}))
  </code></pre>
  <p>That message reads:</p>
  <pre><code>Reflection warning, /Users/ethan/Projects/scicloj/tablecloth.time/src/tablecloth/time/index.clj:26:3 - call to java.util.HashMap ctor can't be resolved.
  </code></pre>
  <p>I've tried placing type hints to avoid this but am not sure where to place them to prevent the reflection error. Does anyone know how to do this?</p>
  <p>I've tried:</p>
  <pre><code>(defn test-reflection-err []
    (^TreeMap new java.util.HashMap {}))
  </code></pre>
  <p>and</p>
  <pre><code>(defn test-reflection-err []
    (doto ^TreeMap (new java.util.HashMap {})))
  </code></pre>