mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
15 lines
251 B
Java
15 lines
251 B
Java
// "Create local variable 'x2'" "true-preview"
|
|
|
|
class A {
|
|
public void foo() {
|
|
int x2;
|
|
var x = switch (x2)
|
|
{
|
|
case 1 ->
|
|
{
|
|
yield "bar";
|
|
}
|
|
default -> "foo";
|
|
};
|
|
}
|
|
} |