Files
openide/java/java-tests/testData/codeInsight/generation/surroundWith/java13/DefaultThrowWithIfElse.java
T
2019-07-02 06:52:16 +03:00

8 lines
188 B
Java

class C {
void test(int n) {
String s = switch (n) {
case 1 -> "";
default -> <selection>throw new RuntimeException("a");</selection>
};
}
}