mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
16 lines
274 B
Java
16 lines
274 B
Java
package test;
|
|
|
|
public class Test1 {
|
|
void test(){
|
|
String s = "sample";
|
|
String result = switch (s) {
|
|
case "one" -> <selection>foo();</selection>
|
|
default -> "default";
|
|
};
|
|
}
|
|
|
|
String foo(){
|
|
return "42";
|
|
}
|
|
}
|