inference: ensure all type parameters are processed on upUp bound incorporation (IDEA-194839)

This commit is contained in:
Anna.Kozlova
2018-07-02 15:22:10 +02:00
parent 862879f5e1
commit f739ddf3d4
3 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
import java.util.function.Function;
class MyTest {
static <T, R, F extends Function<T, R>> F from(F fun1) {
return fun1;
}
void test2() {
Function<Object, Integer> ext = from(x -> 1);
}
}