Actions
Bug #10309
closedUnexpected keyword parameters becomes an additional mandatory parameter
Description
Is it an intentional behaviour?
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]
Actions
Like0
Like0Like0