new inference: overload resolution for SAM return type for implicit lambda should be ignored

This commit is contained in:
anna
2013-09-25 16:12:44 +02:00
parent 66926021e9
commit f5257087e9
19 changed files with 43 additions and 39 deletions
@@ -5,7 +5,7 @@ class Test {
<K extends Throwable> void foo(F<K> f) throws K { }
{
foo(<error descr="Cyclic inference">(t)->{}</error>);
<error descr="Unhandled exception: java.lang.Throwable">foo((t)->{});</error>
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo((ClassNotFoundException t)->{});</error>
}
}