Project

General

Profile

Actions

Bug #20927

open

`{ **{ } }` behaves differently when `shareable_constant_value: experimental_everything`

Added by tenderlovemaking (Aaron Patterson) 2 days ago.

Status:
Open
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.4 (2024-07-16 revision 425e468d25) [arm64-darwin23]
[ruby-core:120082]

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.


Related issues 2 (2 open0 closed)

Related to Ruby master - Bug #20926: shareable_constant_value: experimental_everything crashes with parse.yOpenActions
Related to Ruby master - Bug #20916: Prism compiler should support ** in Ractor constantAssignedprismActions
Actions #1

Updated by tenderlovemaking (Aaron Patterson) 2 days ago

  • Related to Bug #20926: shareable_constant_value: experimental_everything crashes with parse.y added
Actions #2

Updated by tenderlovemaking (Aaron Patterson) 2 days ago

  • Related to Bug #20916: Prism compiler should support ** in Ractor constant added
Actions

Also available in: Atom PDF

Like0
Like0Like0