paulk-asert opened a new pull request, #3282: URL: https://github.com/apache/groovy/pull/3282
…closure when its call is checked again A closure with an implicit parameter passed to a method overloaded on functional interfaces that take different numbers of parameters, such as Function and BinaryOperator, was matched to the interface taking none or one parameter (GROOVY-10905) the first time the call was type checked, from the parameter count the closure's type carries. Visiting the closure stored its inferred type without that count, so when the call was checked again, as the body of a loop or closure in which a variable changes type is, or while looking for a property after a method was not found on the call's result, the overloads were at the same distance and the call was reported as ambiguous. The stored type now carries the parameter count too. -- 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]
