[ruby-core:69896] [Ruby trunk - Bug #11327] Improve duplicate key warning.

From: matz@...
Date: 2015-07-08 01:59:34 UTC
List: ruby-core #69896
Issue #11327 has been updated by Yukihiro Matsumoto.


Agreed.

Matz

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

* 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/

In This Thread

Prev Next