mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 21:41:24 +07:00
15 lines
287 B
Java
15 lines
287 B
Java
// "Convert 'x' to field in anonymous class" "true"
|
|
class Test {
|
|
public void test() {
|
|
int x = 12;
|
|
var ref = new Object() {
|
|
int y = 23;
|
|
}
|
|
ref.y++;
|
|
Runnable r = () -> {
|
|
<caret>x++;
|
|
ref.y++;
|
|
};
|
|
}
|
|
}
|