lambda: tests

This commit is contained in:
anna
2012-07-20 18:59:19 +02:00
parent 01aefae9db
commit 7f8362d025
11 changed files with 271 additions and 2 deletions
@@ -0,0 +1,17 @@
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<Object>)' match">(()->{throw new AssertionError();})</error>;
}
}