Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/highlighting/Ambiguity1.java
2012-08-13 11:29:40 +04:00

18 lines
294 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<error descr="Ambiguous method call: both 'Ambiguity1.m(I1)' and 'Ambiguity1.m(I2<T>)' match">(()->{throw new AssertionError();})</error>;
}
}