Consider the following:
import java.util.function.BiConsumer
def <T> BiConsumer<String, List<T>> m(BiConsumer<String, ? super T> consumer) {
return { text, list -> // or (text, list) -> {
for (item in list) {
consumer.accept(text, item)
}
}
}
The types of "text", "list" and "item" are all unknown (Object). Code assist for any of these variables is limited.
See also GROOVY-10660
Derived from #1327

Consider the following:
The types of "text", "list" and "item" are all unknown (Object). Code assist for any of these variables is limited.
See also GROOVY-10660
Derived from #1327