Fork me on GitHub
#clojure-dev
<
2016-03-04
>
bronsa11:03:13

user=> #{[1] [1]}
IllegalArgumentException Duplicate key: [1]  clojure.lang.PersistentHashSet.createWithCheck (PersistentHashSet.java:68)
user=> #{'[1] [1]}
#{[1]}
user=> #{'^:foo [1] [1]}
#{[1]}
user=> #{'[1] ^:bar [1]}
IllegalArgumentException Duplicate key: [1]  clojure.lang.PersistentHashSet.createWithCheck (PersistentHashSet.java:56)

andy.fingerhut12:03:21

@bronsa: Weird. Did you figure out why that is happening? I think I wrote createWithCehck a few years back.

bronsa12:03:42

it's not using createWithCheck in some cases

andy.fingerhut12:03:08

That would do it.

bronsa12:03:47

I'll open a ticket + patch this evening

mfikes15:03:28

FWIW, ClojureScript has a ticket covering a case that might be related, but I haven’t looked into it: http://dev.clojure.org/jira/browse/CLJS-1587

bronsa16:03:30

yeah, I discovered this clj bug when a colleague linked this cljs one

bronsa16:03:44

don't think it's related though