Another observation: it seems that the type inference stumbles only when
there is an overloaded method with the same arity (?):

    (import 'java.time.format.TextStyle)

    (let [builder (DateTimeFormatterBuilder.)]
      (.appendZoneText builder TextStyle/FULL #{}))

This is a similar case in the same API with java.util.Set instead of
Map. Here no type hints are necessary, apparently because there is only
one arity-2 overload for this method and #{} can be resolved as
java.util.Set without warnings.

I will file a JIRA for this.

Thank you,


-- 
David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to