mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 05:20:54 +07:00
11 lines
238 B
Java
11 lines
238 B
Java
// "Replace with 'new Object[]{b}'" "true-preview"
|
|
|
|
class Test {
|
|
static void bar(boolean flag) {
|
|
Object[] a = {1, 2};
|
|
Object b = "hello";
|
|
foo(0, flag ? a : new Object[]{b});
|
|
}
|
|
static void foo(int x, Object... xs) {
|
|
}
|
|
} |