Thanks for the feedback guys. I have submitted a jira issue for the bug:

http://dev.clojure.org/jira/browse/CLJ-944

By the way, tried this with Clojure 1.2.1, and there it works fine.

Cheers,
Alf


On Sat, Mar 3, 2012 at 16:11, Herwig Hochleitner <hhochleit...@gmail.com>wrote:

> Looks like the type inferencer inserts a cast to PersistentHashMap,
> where it should only cast to clojure.lang.Associative (the interface
> on which .containsKey is defined).
> Also, the type inferencer picks up the wrong type from the literal,
> but that wouldn't matter, if it would always cast to the most general
> class on which a method call can be resolved.
>
> Can someone verify that explaination?
>
> kind regards
>
> --
> 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 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

Reply via email to