Issue #10309 has been updated by Koichi Sasada.

Status changed from Open to Rejected

Ah, I'm sorry. It is duplicated ticket (I can't find another ticket).
My misunderstanding.


----------------------------------------
Bug #10309: Unexpected keyword parameters becomes an additional mandatory parameter
https://bugs.ruby-lang.org/issues/10309#change-49150

* Author: Koichi Sasada
* Status: Rejected
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.2 to 2.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Is it an intentional behaviour?

```ruby
def foo a, b, c, k1: 1
  p [a, b, c, k1]
end

foo 1, 2, {k1: 3, k2: 4}
#=> [1, 2, {:k1=>3, :k2=>4}, 1]

foo 1, 2, k1: 3, k2: 4
#=> [1, 2, {:k1=>3, :k2=>4}, 1]
```





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