Issue #11327 has been reported by Andre Medeiros.

----------------------------------------
Bug #11327: Improve duplicate key warning. 
https://bugs.ruby-lang.org/issues/11327

* Author: Andre Medeiros
* Status: Open
* Priority: Normal
* Assignee: Zachary Scott
* ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
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)


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