mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 22:51:01 +07:00
13 lines
298 B
Java
13 lines
298 B
Java
// "Replace with 'new Serializable[]{b}'" "true-preview"
|
|
|
|
import java.io.Serializable;
|
|
|
|
class Test {
|
|
static void bar(boolean flag) {
|
|
Serializable[] a = {1, 2};
|
|
Serializable b = "hello";
|
|
foo(0, flag ? a : new Serializable[]{b});
|
|
}
|
|
static void foo(int x, Serializable... xs) {
|
|
}
|
|
} |