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