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