[2.0] Incorrect arity checking for methods with kw arguments #1049
The following program should raise an ArgumentError:
def test(foo: 10) foo end test(3)
In the latest JRuby it instead produces 10.
On the other hand, this should not raise an argument error:
def test(foo, bar: 10) [foo, bar] end test(no: "way")
...but it does. (MRI 2.0.0p0 also got this wrong, but p247 displays correct behavior.)
The text was updated successfully, but these errors were encountered: