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