Actions
Bug #20927
open`{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything`
Status:
Open
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.4 (2024-07-16 revision 425e468d25) [arm64-darwin23]
Description
These two programs produce different results
# shareable_constant_value: experimental_everything
C = { **{ } }
p C
C = { **{ } }
p C
The first one prints this:
$ ruby test.rb
{nil=>{}}
The second one prints this:
$ ruby test.rb
{}
I think they should print the same thing.
Actions
Like0
Like0Like0