mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 11:50:57 +07:00
22 lines
326 B
Java
22 lines
326 B
Java
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);
|
|
}
|
|
}
|