mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
19 lines
279 B
Plaintext
19 lines
279 B
Plaintext
interface Foreign {
|
|
void foo(Test1 test1);
|
|
}
|
|
|
|
class ForeignImpl implements Foreign {
|
|
@Override
|
|
public void foo(Test1 test1) {
|
|
test1.field++;
|
|
}
|
|
}
|
|
|
|
|
|
public abstract class Test1 {
|
|
int field;
|
|
|
|
void bar () {
|
|
new ForeignImpl().foo(this);
|
|
}
|
|
} |