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