Description
Consider the following:
class C { def foo } @groovy.transform.TypeChecked void test(List<C> list) { print list.collect(C.&getFoo) // Cannot find matching method C#getFoo } test([new C(foo:'bar'), new C(foo:'baz')])
Attachments
Issue Links
- is related to
-
GROOVY-10054 STC: Cannot infer lambda parameter types for a stream collector
- Open
- relates to
-
GROOVY-10734 STC doesn't resolve zero-argument method references in nested generics
- Closed