mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: fresh variables
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
abstract class Sample {
|
||||
abstract <T> T id (T t);
|
||||
abstract <R> void foo(List<R> c);
|
||||
abstract <U> List<U> bar(Function<String, U> m);
|
||||
|
||||
{
|
||||
foo(bar(this::id));
|
||||
foo(bar(id(i -> i)));
|
||||
|
||||
Function<String, String> s = id(this::id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user