mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
20 lines
388 B
Java
20 lines
388 B
Java
class Test {
|
|
interface IInt {
|
|
int m();
|
|
}
|
|
|
|
interface ILong {
|
|
long m();
|
|
}
|
|
|
|
void m(IInt i, Long l) {}
|
|
void m(ILong l, Integer i) {}
|
|
|
|
void m1(IInt i, Integer l) {}
|
|
void m1(ILong l, Object i) {}
|
|
|
|
void test() {
|
|
<error descr="Ambiguous method call: both 'Test.m(IInt, Long)' and 'Test.m(ILong, Integer)' match">m</error>(() -> 1, null);
|
|
m1(() -> 1, null);
|
|
}
|
|
} |