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

9 lines
171 B
Java

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