mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
- update language levels partially - fix tests (cherry picked from commit 8d7b599772eda8dfd999bee9f816ec2609be4adb) (cherry picked from commit 98a507ba78b8fc496651b5800fc3936c9c87b689) IJ-MR-169535 GitOrigin-RevId: 898e8b4dfc303eb60da6cfff5d756304c461c424
21 lines
619 B
Java
21 lines
619 B
Java
|
|
class Main {
|
|
public static void var(int... <warning descr="Parameter 'x' is never used">x</warning>) {
|
|
System.out.println("int... x");
|
|
}
|
|
|
|
public static void var(Object... <warning descr="Parameter 'x' is never used">x</warning>) {
|
|
System.out.println("Object... x");
|
|
}
|
|
|
|
public static void var(Integer... <warning descr="Parameter 'x' is never used">x</warning>) {
|
|
System.out.println("Integer... x");
|
|
}
|
|
|
|
public static void main() {
|
|
int i = 0;
|
|
Integer i2 = 127;
|
|
var<error descr="Ambiguous method call: both 'Main.var(int...)' and 'Main.var(Integer...)' match">(i, i2)</error>;
|
|
}
|
|
}
|