Skip to:
(alter-meta! (var +) assoc :foo 42);-> {:foo 42} ;; wrong
(:foo (meta (var +)) :incorrect);-> :incorrect
Please isolate whether this exclusively happens when calling def without a value.
I guess you should open a new ticket then
Comment made by: kozhin_a
it doesn't help.
Try (-> (var x) meta :meta-test)
I try next code in clojurescript version 1.7.122
(def x)(alter-meta! (var x) assoc :meta-test "test")(println (= (-> x meta :meta-test) "test"))=>false
(alter-meta! (var +) assoc :foo 42)
;-> {:foo 42} ;; wrong
(:foo (meta (var +)) :incorrect)
;-> :incorrect