mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
test++
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
class Test{
|
||||
void foo(int i){
|
||||
new InnerClass(i).invoke();
|
||||
}
|
||||
|
||||
void bar(Test t){
|
||||
t.foo(1);
|
||||
}
|
||||
|
||||
private class InnerClass {
|
||||
private int i;
|
||||
|
||||
public InnerClass(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
|
||||
public void invoke() {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user