Actions
Bug #17596
closedCalling parameters on `new` method results in :rest and -1 arity
Bug #17596:
Calling parameters on `new` method results in :rest and -1 arity
Description
Consider the following class:
...and the following call:
Expected
Actual
This is confusing to me as I would expect to be able to see the parameters of the new method like this. The same applies for `initialize.
I was experimenting with pattern matching interfaces and dynamically defining class constructor definitions as such:
While this case is not 100% safe for all initializers I had expected it to work for testing and was surprised when it did not.
I've tested and confirmed this behavior back to 2.5 and tested no further back
Actions