Actions
Feature #12352
closedNew hash syntax broken for numeric keys
Description
[Matz himself showed in RubyConf 2015 the following example]:
h = { 1: 2, 2: 4, 3: 6 }
Which gives
SyntaxError: unexpected ':', expecting =>
h = { 1: 2, 2: 4, 3: 6 }
^
but which should give identical results to
>> h = { 1 => 2, 2 => 4, 3 => 6 }
=> {1=>2, 2=>4, 3=>6}
Actions
Like0
Like0Like0Like0Like0