mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
10 lines
240 B
Java
10 lines
240 B
Java
public class AssignToFinalInSwitchExpression {
|
|
void test() {
|
|
int x = switch (1) {
|
|
default:
|
|
final int var;
|
|
<error descr="Variable 'var' might not have been initialized">var</error>++;
|
|
yield 1;
|
|
};
|
|
}
|
|
} |