Closed zampino closed 4 months ago
(ns scratch.repro) (def a 1) (def a (inc a))
crashes with class clojure.lang.Var$Unbound cannot be cast to class java.lang.Number. The first def is not evaluated at all since the second definition overrides the first in the analysis-info map at key scratch.repro/a.
class clojure.lang.Var$Unbound cannot be cast to class java.lang.Number
scratch.repro/a
Similar failure with the code:
(def a 1) (inc a) (def a :boom)
crashes with
class clojure.lang.Var$Unbound cannot be cast to class java.lang.Number
. The first def is not evaluated at all since the second definition overrides the first in the analysis-info map at keyscratch.repro/a
.