Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createLocalFromUsage/afterSwitchExprBreakJava13Preview.java
Anna Kozlova 24d1d27b1e switch expressions 2.0: expected type by yield
GitOrigin-RevId: f4e396ddc90d66790db044525611c536c3f620fa
2019-07-02 06:52:16 +03:00

11 lines
217 B
Java

// "Create local variable 'foo'" "true"
class Foo {
String test(int i) {
return switch (i) {
default -> {
String foo;
yield foo;
}
};
}
}