ClojureScript

Record comparison is broken when instance is constructed from another record instance via map factory

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: 1.10.238
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    CLJS

Description

Steps:

(defrecord A [])
(def x (map->A {1 2}))
(def y (map->A x))
(= x y)

Actual: false.

Expected: true (as in Clojure).

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: