mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
12 lines
268 B
Java
12 lines
268 B
Java
// "Copy 'a' to effectively final temp variable" "true-preview"
|
|
class Test {
|
|
public void test() {
|
|
int a = 1;
|
|
a = 2;
|
|
int finalA = a;
|
|
Runnable r = () -> {
|
|
Runnable rr = () -> System.out.println(finalA);
|
|
};
|
|
}
|
|
}
|