Actions
Bug #18171
closed`Marshal` ignores `Hash#compare_by_identity`
Description
Is this a bug?
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"}
Updated by nobu (Nobuyoshi Nakada) about 3 years ago
- Status changed from Open to Closed
Applied in changeset git|d08721465850a6e6954b43bbfebe2ed5a7256dec.
Restore Hash#compare_by_identity mode [Bug #18171]
Actions
Like0
Like0