method refs: accept qualified receivers when called over raw type

This commit is contained in:
anna
2012-10-02 18:43:19 +02:00
parent 0e8ade2f40
commit 65983d0060
4 changed files with 37 additions and 11 deletions

View File

@@ -0,0 +1,16 @@
class MyTest {
static class Foo<T> {
T m() {
return null;
}
}
interface I {
Integer m(Foo<Integer> f);
}
public static void main(String[] args) {
I i = Foo::m;
}
}