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