[java-completion] IDEA-324653 Completion for objects with enums

GitOrigin-RevId: e0d5b5dba3535ec70a2aa4eebf3094b45474ef11
This commit is contained in:
Mikhail Pyltsin
2023-07-19 11:25:49 +02:00
committed by intellij-monorepo-bot
parent 7e360b1e9a
commit 4453543010
4 changed files with 37 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
class Main {
public enum En {
HHHH, HE, LI, BE, B, C, N, O, F, NE
}
public void foo(Object o) {
switch (o) {
case String s -> System.out.println(s);
case Integer i -> System.out.println(i);
case En.HH<caret> -> System.out.println("En -> H");
case null, default -> System.out.println("null, default");
}
}}

View File

@@ -0,0 +1,14 @@
class Main {
public enum En {
HHHH, HE, LI, BE, B, C, N, O, F, NE
}
public void foo(Object o) {
switch (o) {
case String s -> System.out.println(s);
case Integer i -> System.out.println(i);
case En.HHHH<caret> -> System.out.println("En -> H");
case null, default -> System.out.println("null, default");
}
}}