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 @@
|
||||
class A {
|
||||
void foo(){}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
interface I {
|
||||
A getMyField();
|
||||
void foo();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test implements I {
|
||||
A myField;
|
||||
A getMyField(){
|
||||
return myField;
|
||||
}
|
||||
|
||||
void bar(I i) {
|
||||
i.foo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
void foo(){}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
interface I {
|
||||
A getMyField();
|
||||
void foo();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
class Test implements I {
|
||||
A myField;
|
||||
A getMyField(){
|
||||
return myField;
|
||||
}
|
||||
|
||||
void foo() {
|
||||
myField.foo();
|
||||
}
|
||||
|
||||
void bar(I i) {
|
||||
i.foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user