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.
Updated by tenderlovemaking (Aaron Patterson) 2 days ago
- Related to Bug #20926: shareable_constant_value: experimental_everything crashes with parse.y added
Updated by tenderlovemaking (Aaron Patterson) 2 days ago
- Related to Bug #20916: Prism compiler should support ** in Ractor constant added
Actions
Like0
Like0Like0