mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testdata for IDEA-151823
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
|
||||
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(String[] args) {
|
||||
int i = 0;
|
||||
Integer i2 = 127;
|
||||
var<error descr="Ambiguous method call: both 'Main.var(int...)' and 'Main.var(Integer...)' match">(i, i2)</error>;
|
||||
}
|
||||
}
|
||||
+4
@@ -204,6 +204,10 @@ public class OverloadResolutionTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(true);
|
||||
}
|
||||
|
||||
public void testIDEA151823() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user