mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
23 lines
296 B
Java
23 lines
296 B
Java
interface I1 {
|
|
void m();
|
|
}
|
|
|
|
interface I2<X> {
|
|
X m();
|
|
}
|
|
|
|
class Ambiguity1 {
|
|
|
|
static void m(I1 i1) {}
|
|
static <T> void m(I2<T> i2) {}
|
|
|
|
{
|
|
m(()->{throw new AssertionError();});
|
|
m(() -> {});
|
|
m(() -> {
|
|
if (false) return;
|
|
throw new RuntimeException();
|
|
});
|
|
}
|
|
}
|