mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
method refs: ambiguity checks into resolver; testdata
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
class MyTest {
|
||||
|
||||
interface I {
|
||||
abstract void m1(int i);
|
||||
}
|
||||
|
||||
static class A {
|
||||
void m(int i) {}
|
||||
}
|
||||
|
||||
static class B extends A {
|
||||
void m(int i) {
|
||||
I mh = super::m;
|
||||
mh.m1(i);
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new B().m(10);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user