mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 18:50:54 +07:00
method refs: accept qualified receivers when called over raw type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user