mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
18 lines
265 B
Plaintext
18 lines
265 B
Plaintext
interface Foreign {
|
|
void foo(Test1 test1);
|
|
}
|
|
|
|
class ForeignImpl implements Foreign {
|
|
public void foo(Test1 test1) {
|
|
test1.field++;
|
|
}
|
|
}
|
|
|
|
|
|
public abstract class Test1 {
|
|
int field;
|
|
|
|
void bar () {
|
|
new ForeignImpl().foo(this);
|
|
}
|
|
} |