Project

General

Profile

Actions

Bug #9291

closed

array splatting a nil works, but hash splatting a nil does not

Added by rits (First Last) over 10 years ago. Updated over 4 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]
Backport:
[ruby-core:59297]

Description

irb(main):001:0> [*nil]
=> []
irb(main):002:0> {**nil}
TypeError: no implicit conversion of nil into Hash


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #8507: Keyword splat does not convert arg to HashRejectedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like1Like0Like0