mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
12 lines
259 B
Java
12 lines
259 B
Java
// "Copy 'i' to effectively final temp variable" "true-preview"
|
|
class Main {
|
|
void foo(int i) {
|
|
int finalI = i;
|
|
switch (i) {
|
|
case 42 -> () -> System.out.println(finalI)
|
|
default -> {}
|
|
}
|
|
i = 0;
|
|
}
|
|
}
|