Actions
Bug #11327
closedImprove duplicate key warning.
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
Updated by zzak (zzak _) over 9 years ago
If matz will approve, and no objection, I will commit it.
Updated by matz (Yukihiro Matsumoto) over 9 years ago
Agreed.
Matz
Updated by zzak (zzak _) over 9 years ago
- Status changed from Open to Closed
Applied in changeset r51196.
- parse.y: Improve duplicate key warning with patch by @andremedeiros
[Fix GH-938] https://github.com/ruby/ruby/pull/938 [Bug #11327]
Updated by nobu (Nobuyoshi Nakada) about 9 years ago
- Has duplicate Feature #11568: Misleading warning for duplicate keys in a hash added
Actions
Like0
Like0Like0Like0Like0