It's possible to create a Hash with duplicate keys using missing key block and update method #14416
Labels
kind:bug
kind:regression
Something that used to correctly work but no longer works
topic:stdlib:collection
Consider the following code
Running this under Crystal 1.9.2 gives the expected result of:
However, from Crystal 1.10.1 up to 1.11.2 (latest) I'm seeing:
with two values for the same key!
Also,
pp! result.size pp! result["NAME"]
Gives
You can see this easily in the crystal playground
The text was updated successfully, but these errors were encountered: