Issue #9291 has been updated by rits (First Last).


this could be used like this: method a: 1, **({b: 1} if condition)
----------------------------------------
Bug #9291: array splatting a nil works, but hash splatting a nil does not
https://bugs.ruby-lang.org/issues/9291#change-43921

Author: rits (First Last)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN


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



-- 
http://bugs.ruby-lang.org/