This commit is contained in:
Dmitry Jemerov
2009-09-11 16:47:10 +04:00
parent 21e685a4c4
commit ec70eb1bc1
29 changed files with 9 additions and 2 deletions
@@ -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();
}
}