[ruby-core:60766] [ruby-trunk - Bug #8703] hash_type is not duplicated if hash is empty

From: nagachika00@...
Date: 2014-02-15 15:44:08 UTC
List: ruby-core #60766
Issue #8703 has been updated by Tomoyuki Chikanaga.

Backport changed from 1.9.3: DONTNEED, 2.0.0: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONE

r42224, r42225, r42226, r42227, r42228, r42229 and r42232 were backported to ruby_2_0_0 at 44979.

----------------------------------------
Bug #8703: hash_type is not duplicated if hash is empty
https://bugs.ruby-lang.org/issues/8703#change-45183

* Author: Masaki Matsushita
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: core
* Target version: 2.1.0
* ruby -v: ruby 2.1.0dev (2013-07-29 trunk 42224) [x86_64-linux]
* Backport: 1.9.3: DONTNEED, 2.0.0: DONE
----------------------------------------
{}.compare_by_identity.dup.compare_by_identity? #=> false
{1=>1}.compare_by_identity.dup.compare_by_identity? #=> true

I think it is a bug.

---Files--------------------------------
patch.diff (449 Bytes)


-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next