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

8 lines
155 B
Java

// "Create local variable 'foo'" "true"
class Foo {
int x = foo ? 0 : switch(1) {
default -> {
yield f<caret>oo;
}
};
}