mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
18 lines
315 B
Java
18 lines
315 B
Java
// "Create local variable 'x2'" "true-preview"
|
|
|
|
import static A.Month.APRIL;
|
|
|
|
class A {
|
|
public void foo() {
|
|
Month x2;
|
|
var x = switch (x2)
|
|
{
|
|
case APRIL ->
|
|
{
|
|
yield "bar";
|
|
}
|
|
default -> "foo";
|
|
};
|
|
}
|
|
enum Month{APRIL, MAY};
|
|
} |