mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
19 lines
314 B
Java
19 lines
314 B
Java
// "Create missing switch branches with null branch" "true-preview"
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Test {
|
|
sealed interface SA permits R1, R2 {
|
|
}
|
|
|
|
record R1() implements SA {
|
|
}
|
|
|
|
record R2() implements SA {
|
|
}
|
|
|
|
|
|
public void test(@Nullable SA sa) {
|
|
switch (sa<caret>) {
|
|
}
|
|
}
|
|
} |