mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-27 00:47:00 +07:00
cacf1099f9
GitOrigin-RevId: e8cc607a3f5a30e9fac7ea69671062ac14dc2673
12 lines
227 B
Java
12 lines
227 B
Java
// "Replace with 'yield'" "true-preview"
|
|
class X {
|
|
int test(String s) {
|
|
return switch (s) {
|
|
case "foo" -> {
|
|
System.out.println("hello");
|
|
return <caret>123;
|
|
}
|
|
case "bar" -> 2;
|
|
};
|
|
}
|
|
} |