mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
new inference: overload resolution for SAM return type for implicit lambda should be ignored
This commit is contained in:
+1
-1
@@ -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>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user