mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 04:21:24 +07:00
method refs: testdata
This commit is contained in:
@@ -13,4 +13,32 @@ class MyTest {
|
||||
public static void main(String[] args) {
|
||||
I i = Foo::m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class MyTest1 {
|
||||
|
||||
interface I1 {
|
||||
void m(String s);
|
||||
}
|
||||
|
||||
interface I2 {
|
||||
void m(Integer i);
|
||||
}
|
||||
|
||||
interface I3 {
|
||||
void m(Object o);
|
||||
}
|
||||
|
||||
static class Foo<T extends Number> {
|
||||
Foo(T t) {}
|
||||
}
|
||||
|
||||
|
||||
static void foo(I1 i) {}
|
||||
static void foo(I2 i) {}
|
||||
static void foo(I3 i) {}
|
||||
|
||||
static {
|
||||
foo(Foo::new);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user