I'm not on alpha7 yet, but what about (case 49 "1" 'string 49 'int)?
"1" hashes to 49, so there's a hash collision.

On May 15, 5:26 pm, Christopher Redinger <ch...@clojure.com> wrote:
> On Sunday, May 15, 2011 1:14:20 PM UTC-4, Tassilo Horn wrote:
>
> >   java.lang.IllegalArgumentException: No distinct mapping found
> >     at clojure.core$min_hash.invoke (core.clj:5805)
>
> Can you supply a small example where this is happening?
>
> For reference, this code that failed in alpha6:
>
> user=> *clojure-version*
> {:major 1, :minor 3, :incremental 0, :qualifier "alpha6"}
>
> user=> (defn buggy-case [n]
>       (case (int n)
>             0          :null
>             1          :load
>             0x70000000 :loproc))
> CompilerException java.lang.IllegalArgumentException: No distinct mapping
> found, compiling:(NO_SOURCE_PATH:17)
>
> Now works in alpha7:
>
> user=> *clojure-version*
> {:major 1, :minor 3, :incremental 0, :qualifier "alpha7"}
> user=> (defn buggy-case [n]
>       (case (int n)
>             0          :null
>             1          :load
>             0x70000000 :loproc))
> #'user/buggy-case
>
> Thanks!

-- 
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