mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce vararg variable from the selected enumeration (IDEA-82508)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
void foo(E... e) {
|
||||
}
|
||||
|
||||
void bar() {
|
||||
E[] strs = {E.E1, E.E2};
|
||||
foo(strs);
|
||||
}
|
||||
}
|
||||
|
||||
static enum E {
|
||||
E1, E2;
|
||||
}
|
||||
Reference in New Issue
Block a user