mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test++
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
abstract class A{
|
||||
abstract void foo();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class D {
|
||||
void foo(){}
|
||||
|
||||
void bar(A a){
|
||||
a.foo();
|
||||
}
|
||||
|
||||
void bazz(Test t){
|
||||
t.getMyField().foo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Test extends A {
|
||||
D myField;
|
||||
|
||||
void ff(){
|
||||
myField.foo();
|
||||
}
|
||||
|
||||
public D getMyField() {
|
||||
return myField;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user