You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2020/11/12 21:29:00 UTC
[jira] [Created] (GROOVY-9813) Improve support for matching
functional interface to variadic method reference
Eric Milles created GROOVY-9813:
-----------------------------------
Summary: Improve support for matching functional interface to variadic method reference
Key: GROOVY-9813
URL: https://issues.apache.org/jira/browse/GROOVY-9813
Project: Groovy
Issue Type: Bug
Reporter: Eric Milles
Java supports each of the following functional interface assignments for a variadic method like {{java.util.Arrays#asList}}. Groovy 3 does not yet implement the first case.
{code:groovy}
import java.util.function.*
@groovy.transform.TypeChecked
void test() {
Supplier<List> zero = Arrays::asList
Function<Integer, List> one = Arrays::asList
BiFunction<Integer, Integer, List> two = Arrays::asList
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)