mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-18 07:15:51 +07:00
new inference: lambda compatibility: ground type constraint added
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import java.util.List;
|
||||
|
||||
public class Sample {
|
||||
interface Fun<A extends List <String>, B> {
|
||||
B f(A a);
|
||||
}
|
||||
|
||||
<T, R> void foo(Fun<? super T , R> f) {}
|
||||
|
||||
{
|
||||
foo((List<String> ls) -> ls.size());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user