new inference: do not prefer specifics based on void return type for both void and value compatible lambdas

This commit is contained in:
Anna Kozlova
2014-03-06 10:15:22 +01:00
parent a70f8239c8
commit 5029b3fc55
2 changed files with 7 additions and 7 deletions
@@ -22,6 +22,6 @@ class AmbiguityRawGenerics {
<Z> void foo(I3<Z> s) { }
void bar() {
foo<error descr="Ambiguous method call: both 'AmbiguityRawGenerics.foo(I1)' and 'AmbiguityRawGenerics.foo(I2)' match">(()-> { throw new RuntimeException(); })</error>;
foo<error descr="Ambiguous method call: both 'AmbiguityRawGenerics.foo(I)' and 'AmbiguityRawGenerics.foo(I1)' match">(()-> { throw new RuntimeException(); })</error>;
}
}