mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
12 lines
226 B
Java
12 lines
226 B
Java
// "Move 'x' into anonymous object" "true-preview"
|
|
class Test {
|
|
public void test() {
|
|
var ref = new Object() {
|
|
int x = 12;
|
|
};
|
|
Runnable r = () -> {
|
|
ref.x++;
|
|
};
|
|
}
|
|
}
|