Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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:
def <T extends CharSequence> T chars() { ... } Supplier s = this::<String>chars
Attachments
Issue Links
- relates to
-
GROOVY-10984 Unexpected parser error when having fully qualified classes and constructor references
- Open
-
GROOVY-11024 STC NPE when using Collectors.toMap() with a generic result
- Closed