mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
new overload resolution: check only functional arguments in isFunctionalTypeMoreSpecific (IDEA-134328)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
|
||||
{
|
||||
transform(1, (String l) -> null);
|
||||
}
|
||||
|
||||
public static <I, O> void transform(int input, Function<I, O> function) {
|
||||
System.out.println(input);
|
||||
System.out.println(function);
|
||||
}
|
||||
|
||||
interface IFunction<F, T> {
|
||||
List<T> apply(F var1);
|
||||
}
|
||||
public static <I, O> void transform(int input, IFunction<I, O> function) {
|
||||
System.out.println(input);
|
||||
System.out.println(function);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user