mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
Adjust the completion variants for switch statements and expressions GitOrigin-RevId: 05119897b0eb72bb875097cd197f376534d15db9
20 lines
314 B
Java
20 lines
314 B
Java
|
|
class Main {
|
|
int f(Object o) {
|
|
return switch(o) {
|
|
case Integer integer && inte<caret>, null
|
|
}
|
|
}
|
|
|
|
int g(Object o) {
|
|
return switch(o) {
|
|
case null, Integer integer && inte<caret>
|
|
}
|
|
}
|
|
|
|
int h(Object o) {
|
|
return switch(o) {
|
|
case Integer integer && inte<caret>
|
|
}
|
|
}
|
|
} |