Project

General

Profile

Actions

Bug #20472

open

Ractor support for ** into hash literal

Added by kddnewton (Kevin Newton) 13 days ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:117781]

Description

# shareable_constant_value: experimental_copy
a = { "foo" => "bar" }
A = { **a }

In this example, Ruby fails an assertion and crashes. I think we should either provide support for this, or we should explicitly provide a syntax error indicating that ** isn't allowed in constant writes when ractor pragmas are enabled.

No data to display

Actions

Also available in: Atom PDF

Like0