mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
24 lines
320 B
Java
24 lines
320 B
Java
import java.util.*;
|
|
|
|
class Test {
|
|
|
|
|
|
void m(Runnable p) { }
|
|
void m(List<Runnable> p) { }
|
|
|
|
{
|
|
m(foo());
|
|
m<error descr="Ambiguous method call: both 'Test.m(Runnable)' and 'Test.m(List<Runnable>)' match">(bar())</error>;
|
|
}
|
|
|
|
<T> List<T> foo() {
|
|
return null;
|
|
}
|
|
|
|
<T> T bar() {
|
|
return null;
|
|
}
|
|
|
|
|
|
}
|