> I think it is the var that should be hinted. In practice you probably
> have a function which could have a hinted arg.
That's it! Thanks Karl.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups
On Jul 4, 8:51 am, Adrian Cuthbertson
wrote:
> I've tried every permutation of type hinting, but cannot get rid of
> those warnings.
>
> Any ideas?
>
> -Thanks, Adrian.
Notice this:
user> (set! *warn-on-reflection* true)
true
user> (import '(java.io File))
java.io.File
user> (definterface IFil
I don't seem to be able to get rid of reflection warnings on
definterface/deftype field/method calls...
Clojure 1.2.0-master-SNAPSHOT
user=> (set! *warn-on-reflection* true)
true
(import '(java.io File))
java.io.File
(definterface IFile (^String getNm[]))
(deftype TFile [^File file] IFile (^String