mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test++, compilation fixed again
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
public class A extends B {
|
||||
private final MyJ myDelegate = new MyJ();
|
||||
|
||||
public J getMyDelegate() {
|
||||
return myDelegate;
|
||||
}
|
||||
|
||||
private class MyJ implements J {
|
||||
public void run() {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
class B {
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
interface J extends Runnable {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class Usage {
|
||||
public static void main() {
|
||||
A a = new A();
|
||||
a.getMyDelegate().run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user