blob: 7f4f3cf4454330122207787d31ff97b9ea17c481 [file] [log] [blame]
class Test {
void foo() {
int x = 0;
Inner inner = new Inner(x).invoke();
x = inner.getX();
int y = x;
System.out.println(x + y);
}
private class Inner {
private int x;
public Inner(int x) {
this.x = x;
}
public int getX() {
return x;
}
public Inner invoke() {
x++;
return this;
}
}
}