[
https://issues.apache.org/jira/browse/GROOVY-9239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17806817#comment-17806817
]
Eric Milles commented on GROOVY-9239:
-------------------------------------
https://github.com/apache/groovy/commit/d8726d7e2f0f554c6e947679cc183adcb60b79e2
> Java compatibility: consider supporting method reference with generics
> ----------------------------------------------------------------------
>
> Key: GROOVY-9239
> URL: https://issues.apache.org/jira/browse/GROOVY-9239
> Project: Groovy
> Issue Type: Improvement
> Components: parser-antlr4
> Reporter: Eric Milles
> Priority: Minor
>
> A bit of a rare use case, but ran into it and noticed
> {{MethodReferenceExpression}} has no support for this sort thing. Java
> supports generics for method references.
> For example:
> {code:groovy}
> def <T extends CharSequence> T chars() { ... }
> Supplier s = this::<String>chars
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)