Project

General

Profile

Actions

Bug #22526

open

parse.y m(**h, **{})

Bug #22526: parse.y m(**h, **{})

Added by kddnewton (Kevin Newton) about 18 hours ago.

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

Description

In parse.y foo(**h, **{}) passes h through as if it were foo(**h)

def kw(**k) = k

p kw(**Hash.new(5), **{}).default                   # expected nil, got 5
p kw(**Hash.new { 7 }, **{})[:x]                    # expected nil, got 7
p kw(**{a: 1}.compare_by_identity, **{}).compare_by_identity? # expected false, got true
p kw(**Class.new(Hash).new, **{}).class == Hash     # expected true, got false

No data to display

Actions

Also available in: PDF Atom