Project

General

Profile

Actions

Bug #8703

closed

hash_type is not duplicated if hash is empty

Added by Glass_saga (Masaki Matsushita) over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 2.1.0dev (2013-07-29 trunk 42224) [x86_64-linux]
[ruby-core:56256]

Description

{}.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) patch.diff Glass_saga (Masaki Matsushita), 07/29/2013 04:30 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0