mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
also fixes internationalization and the incorrect comma in the name for "Create missing switch branches" quick-fix GitOrigin-RevId: 16285e054447d8d15318df8889499bbbf91243a7
19 lines
354 B
Java
19 lines
354 B
Java
// "Create missing branch 'Ab'" "true-preview"
|
|
sealed interface A {}
|
|
sealed interface Aa extends A {}
|
|
final class Aaa implements Aa {}
|
|
final class Aab implements Aa {}
|
|
final class Ab implements A {}
|
|
|
|
class Test {
|
|
void test(A a) {
|
|
switch (a) {
|
|
case Aaa x -> {
|
|
}
|
|
case Aab x -> {
|
|
}
|
|
case Ab ab -> {
|
|
}
|
|
}
|
|
}
|
|
} |