From: zimbatm@... Date: 2015-05-10T18:01:04+00:00 Subject: [ruby-core:69116] [Ruby trunk - Misc #11131] [Open] Unexpected splatting of empty kwargs Issue #11131 has been reported by zimba tm. ---------------------------------------- Misc #11131: Unexpected splatting of empty kwargs https://bugs.ruby-lang.org/issues/11131 * Author: zimba tm * Status: Open * Priority: Normal * Assignee: ---------------------------------------- ~~~ def foo(); :ok end foo(*[]) #=> :ok foo(**{}) #=> ArgumentError: wrong number of arguments (1 for 0) foo(*[], **{}) #=> ArgumentError: wrong number of arguments (1 for 0) ~~~ I was expecting kwargs splatting to work the same as args splatting and be ignored when an empty container is passed. -- https://bugs.ruby-lang.org/