mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 04:11:31 +07:00
GitOrigin-RevId: 411e4842d0ecf8cf4db0308f854e179dee46ced3
13 lines
262 B
Java
13 lines
262 B
Java
// "Replace with 'switch' expression" "true-preview"
|
|
|
|
class X {
|
|
void test(I i) {
|
|
int d = switch (i) {
|
|
case Object ii -> 3;
|
|
};
|
|
}
|
|
|
|
sealed interface I {}
|
|
final class C1 implements I {}
|
|
final class C2 implements I {}
|
|
} |