mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
testdata for IDEA-158047
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
class MyTest {
|
||||
public MyTest(String s, List<String> l, String s2) {
|
||||
}
|
||||
|
||||
public MyTest(String s, int i) {
|
||||
}
|
||||
|
||||
{
|
||||
new MyTest("", <error descr="Incompatible types. Required int but 'emptyList' was inferred to List<T>:
|
||||
no instance(s) of type variable(s) T exist so that List<T> conforms to Integer">Collections.emptyList()</error>);
|
||||
}
|
||||
}
|
||||
@@ -256,6 +256,9 @@ public class OverloadResolutionTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testInferenceErrorInArgumentWhenWrongOverloadWasChosen() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(true);
|
||||
|
||||
Reference in New Issue
Block a user