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

From: usa@...
Date: 2014-02-14 04:41:14 UTC
List: ruby-core #60701
Issue #8703 has been updated by Usaku NAKAMURA.

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

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

* 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: REQUIRED
----------------------------------------
{}.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