daniellansun opened a new pull request, #3343:
URL: https://github.com/apache/groovy/pull/3343

   https://issues.apache.org/jira/browse/GROOVY-3351
   
   Assigning a curried MethodClosure to a metaClass now registers every 
overload the curry can still call, including the shorter ones default 
parameters generate. Direct calls such as 
`Foo.&fooWithDefaults.curry("A")("B")` already worked; `foo("B")` after a 
metaClass assignment used to throw `MissingMethodException`.
   
   `CurriedClosure.expandSignatures` drops the parameters the curry binds, 
using the same insertion point as `getUncurriedArguments`. Copies of an 
`rcurry` closure stay lazy, so a cloned or dehydrated right-curried closure 
keeps that rule. Varargs and composed closures keep a single meta-method, as 
before.
   
   `testGroovy3351` now runs as a regular test; its assertions are unchanged. 
Additional coverage is in `Groovy3351Test`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to