Project

General

Profile

Actions

Bug #20472

open

Ractor support for ** into hash literal

Added by kddnewton (Kevin Newton) 7 months ago. Updated 9 days ago.

Status:
Assigned
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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0