Files
openide/java/java-tests/testData/codeInsight/invertIfCondition/beforeYield.java
Mikhail Pyltsin 06dfb15bc0 [java-intentions] IDEA-312732 Invert 'if' doesn't work if branches have 'yield'
GitOrigin-RevId: 500a77bff4f250dbcd4779293e678d262227014f
2023-02-23 14:27:19 +00:00

13 lines
219 B
Java

// "Invert 'if' condition" "true-preview"
class A {
int test(int x, int y) {
return switch (y) {
default -> {
if (<caret>x > 10) {
yield 11;
}
yield 21;
}
};
}
}