blob: 265142a029bbae45a42d7f2fe31985a5aa9094a6 [file] [log] [blame]
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);
}
}