Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceWithYield/afterSimple.java
2022-09-12 18:28:50 +00:00

12 lines
219 B
Java

// "Replace with 'yield'" "true-preview"
class X {
int test(String s) {
return switch (s) {
case "foo" -> {
System.out.println("hello");
yield 123;
}
case "bar" -> 2;
};
}
}