From: "nobu (Nobuyoshi Nakada)" Date: 2021-09-16T05:13:34+00:00 Subject: [ruby-core:105282] [Ruby master Bug#18171] `Marshal` ignores `Hash#compare_by_identity` Issue #18171 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Bug #18171: `Marshal` ignores `Hash#compare_by_identity` https://bugs.ruby-lang.org/issues/18171 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Is this a bug? ```ruby h = {}.compare_by_identity h["a"+"1"] = "1" h["a"+"1"] = "2" p h #=> {"a1"=>"1", "a1"=>"2"} p Marshal.load(Marshal.dump(h)) #=> {"a1"=>"2"} ``` -- https://bugs.ruby-lang.org/ Unsubscribe: