From: "tenderlovemaking (Aaron Patterson) via ruby-core" Date: 2024-12-03T00:48:52+00:00 Subject: [ruby-core:120082] [Ruby master Bug#20927] `{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything` 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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/