Issue #8939 has been updated by Sing9898 (Sing Lou).


yes,duplicate, thanks
----------------------------------------
Feature #8939: symbol / string invariance (for hashes)
https://bugs.ruby-lang.org/issues/8939#change-41932

Author: Sing9898 (Sing Lou)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


hash={key:"value"}
hash["key"] should return "value"

hash={"key"=>"value"}
hash[:key] should return "value"


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