Project

General

Profile

Actions

Bug #11327

closed

Improve duplicate key warning.

Added by superdealloc (Andre Medeiros) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
[ruby-core:69860]

Description

This change rephrases the duplicate key warning, which causes some confusion.

Before:

/Users/andre/bug.rb:4: warning: duplicated key at line 5 ignored: :max_instances

After:

/Users/andre/bug.rb:4: warning: key :max_instances is duplicated and overwritten on line 5

Files

message_fix.diff (647 Bytes) message_fix.diff superdealloc (Andre Medeiros), 07/03/2015 07:29 PM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Feature #11568: Misleading warning for duplicate keys in a hashClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0