mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
lambda: correct inference for vararg place > params.len (IDEA-101169)
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
import java.util.*;
|
||||
|
||||
class IDEA101169 {
|
||||
{
|
||||
List<List<UnaryOperator<String>>> intPermutationOfFunctions = perm(asList( s -> s.substring(0), s -> s.substring(0), s -> s.substring(0)));
|
||||
|
||||
List<UnaryOperator<String>> p = asList( s -> s.substring(0), s -> s.substring(0), s -> s.substring(0));
|
||||
}
|
||||
|
||||
public static <T> List<List<T>> perm(List<T> l) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@SafeVarargs
|
||||
public static <T> List<T> asList(T... a) {
|
||||
return null;
|
||||
}
|
||||
|
||||
interface UnaryOperator<T> extends Function<T, T> {}
|
||||
|
||||
interface Function<T, R> {
|
||||
public R apply(T t);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user