You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2020/11/17 22:46:30 UTC

[GitHub] [groovy] chrylis commented on pull request #1414: GROOVY-9803: translate generics of method reference using SAM parameters

chrylis commented on pull request #1414:
URL: https://github.com/apache/groovy/pull/1414#issuecomment-729259561


   I'm not sure from reading the code change, but does this handle arbitrarily nested generics? The actual real-world type that the compiler is having trouble with is (combining Vavr, Spring MVC, and some of my own record types)
   
   ```
   <E, A, R> Either<JsonApiErrorResponse<E>, HeadersAndBody<JsonApiDataItemResponse<A, R>>>
   ```
   
   where invoking `Either#map` expects a `Function<? super HeadersAndBody<JsonApiDataItemResponse<A, R>>` (this part works) but the closure (or Parrot lambda) seems not to correctly preserve the nested type parameters into the closure.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org