lambda: return type void-compatibility checks extracted

This commit is contained in:
Anna Kozlova
2012-08-20 14:21:37 +04:00
parent ff7e11f084
commit a060e747ab
9 changed files with 125 additions and 19 deletions

View File

@@ -12,6 +12,6 @@ class Ambiguity1 {
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>;
m<error descr="Ambiguous method call: both 'Ambiguity1.m(I1)' and 'Ambiguity1.m(I2<Object>)' match">(()->{throw new AssertionError();})</error>;
}
}