From: ko1@... Date: 2014-10-01T06:44:19+00:00 Subject: [ruby-core:65334] [ruby-trunk - Bug #10309] [Open] Unexpected keyword parameters becomes an additional mandatory parameter Issue #10309 has been reported by Koichi Sasada. ---------------------------------------- Bug #10309: Unexpected keyword parameters becomes an additional mandatory parameter https://bugs.ruby-lang.org/issues/10309 * Author: Koichi Sasada * Status: Open * 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/