Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingSealedClassSwitchBranches/beforeSeveralSealed.java
Mikhail Pyltsin 8c4d0aad95 [java-highlighting] IDEA-324552 Create missing switch branch produces incorrect code
GitOrigin-RevId: cfdd28e2983d3b0f32011058e14985660bd7eb0f
2023-07-08 13:44:41 +00:00

10 lines
239 B
Java

// "Create missing switch branch 'Test.Cl1'" "true-preview"
class Test {
interface II1{}
sealed interface II2{}
non-sealed class Cl1 implements II2{}
public <T extends II1 & II2> void test(T c) {
switch (c<caret>) {
}
}
}