testdata accepted

This commit is contained in:
Anna Kozlova
2014-09-12 09:31:18 +04:00
parent c0474c8a59
commit 6b266edf0b
2 changed files with 1 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import java.util.function.Function;
class Main {
{
List<Optional<Function<String, String>>> list = asList(of(Main::identity));
List<Optional<Function<String, String>>> list = asList(of(<error descr="T is not a functional interface">Main::identity</error>));
}
static <T> List<T> asList(T a) { return null;}