mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
15 lines
399 B
Java
15 lines
399 B
Java
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>);
|
|
}
|
|
} |