Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

Like CLJ-2089 but for ClojureScript.

Repro, with ClojureScript:

`
$ clj -m cljs.main
ClojureScript 1.10.339
cljs.user=> (def s (sorted-set #{1}))

'cljs.user/s

cljs.user=> (conj s #{2})
Error: Cannot compare #{2} to #{1}

 cljs$core$compare (cljs/core.cljs:2380:13)
 cljs.core/tree-map-add (cljs/core.cljs:28176:3)
 cljs$core$IAssociative$_assoc$arity$3 (cljs/core.cljs:8734:18)
 cljs.core/-assoc (cljs/core.cljs:630:17)
 cljs$core$IFn$_invoke$arity$3 (cljs/core.cljs:1968:8)
 cljs$core$ICollection$_conj$arity$2 (cljs/core.cljs:9231:31)
 cljs.core/-conj (cljs/core.cljs:583:16)
 cljs$core$IFn$_invoke$arity$2 (cljs/core.cljs:1781:8)
 cljs$core$conj (cljs/core.cljs:1773:1)

`

If feasible, this ticket asks that ClojureScript be made to align with the solution in CLJ-2089 (in particular, with making code like 1. )}} fail fast.)

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2795 (reported by mfikes)
...