mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java][switch completion] IDEA-270439 Code completion for pattern matching in switch
Adjust the completion variants for switch statements and expressions GitOrigin-RevId: 05119897b0eb72bb875097cd197f376534d15db9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1e0a217143
commit
afc2a8cd37
+21
@@ -0,0 +1,21 @@
|
||||
|
||||
class Main {
|
||||
|
||||
int f(Object o) {
|
||||
return switch(o) {
|
||||
case Integer i, null<caret>
|
||||
}
|
||||
}
|
||||
|
||||
int g(Object o) {
|
||||
return switch(o) {
|
||||
case null<caret>, Integer i
|
||||
}
|
||||
}
|
||||
|
||||
int h(Object o) {
|
||||
return switch(o) {
|
||||
case null<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user