
Issue #20927 has been reported by tenderlovemaking (Aaron Patterson). ---------------------------------------- Bug #20927: `{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything` https://bugs.ruby-lang.org/issues/20927 * Author: tenderlovemaking (Aaron Patterson) * Status: Open * ruby -v: ruby 3.3.4 (2024-07-16 revision 425e468d25) [arm64-darwin23] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- These two programs produce different results ```ruby # shareable_constant_value: experimental_everything C = { **{ } } p C ``` ```ruby 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. -- https://bugs.ruby-lang.org/