mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
21 lines
357 B
Java
21 lines
357 B
Java
class Test {
|
|
|
|
interface IntMapper {
|
|
int map();
|
|
}
|
|
|
|
interface LongMapper {
|
|
long map();
|
|
}
|
|
|
|
void m(IntMapper im1, IntMapper... im) { }
|
|
void m(LongMapper... lm) { }
|
|
|
|
{
|
|
m<error descr="Ambiguous method call: both 'Test.m(IntMapper, IntMapper...)' and 'Test.m(LongMapper...)' match">(this ::ii)</error>;
|
|
}
|
|
|
|
int ii() {return 0;}
|
|
|
|
}
|