mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
16 lines
343 B
Java
16 lines
343 B
Java
// "Add on-demand static import for 'test.Test.Letter'" "true-preview"
|
|
package test;
|
|
|
|
import static test.Test.Letter.*;
|
|
|
|
class Test {
|
|
void test(Letter obj) {
|
|
switch (obj) {
|
|
case LETTER_A, LETTER_B -> System.out.println(10);
|
|
case Letter l -> System.out.println(20);
|
|
}
|
|
}
|
|
|
|
enum Letter {LETTER_A, LETTER_B, LETTER_C}
|
|
}
|