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/