Actions
Bug #17181
closedHash with default block breaks after transforming values
Bug #17181:
Hash with default block breaks after transforming values
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
Description
I found a problem with Hashes that use a default proc.
I expected that transforming the values as follows:
should create a new array, and I should still be able to push a new element into it as follows:
But the result is weird.
Actions