method refs: accept generic methods in functional interfaces testdata

This commit is contained in:
anna
2013-02-21 20:19:10 +01:00
parent c1d5562e86
commit 25220f5f46
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
public class Test {
interface I {
<T> String m();
}
static String foo() { return null; }
public I get() {
return Test::foo;
}
}