Misc #16365 ยป 0001-Remove-duplicated-line-in-NEWS-ci-skip.patch
NEWS | ||
---|---|---|
def foo(h={}, key: 42); end; foo("key" => 43, key: 42) # warned
|
||
def foo(h={}, key: 42); end; foo({"key" => 43, key: 42}) # warned
|
||
def foo(h={}, key: 42); end; foo({"key" => 43}, key: 42) # OK
|
||
def foo(h={}, key: 42); end; foo({"key" => 43}, key: 42) # OK
|
||
* If a method does not accept keywords, and is called with keywords,
|
||
the keywords are still treated as a positional hash, with no warning.
|